Revision 4256
Added by Aaron Marcuse-Kubitza over 12 years ago
inputs/input.Makefile | ||
---|---|---|
112 | 112 |
tables := $(if $(wildcard $(sortFile)),$(shell cat $(sortFile))) |
113 | 113 |
# $(shell) replaces "\n" with " " |
114 | 114 |
allSubdirs := $(call wildcard/,*/) |
115 |
allTables := $(filter-out $(tables),$(call sortFilenames,$(filter-out _%\ |
|
116 |
verify,$(allSubdirs:%/=%)))) $(tables)# prepend unsorted tables |
|
115 |
allTables := $(call sortFilenames,$(filter-out _% verify,$(allSubdirs:%/=%))) |
|
116 |
joinedTables := $(filter-out $(tables),$(allTables)) |
|
117 |
allTables := $(joinedTables) $(tables)# move joined tables to beginning |
|
117 | 118 |
ifeq ($(tables),)# none specified in sort file |
118 | 119 |
tables := $(allTables) |
119 | 120 |
endif |
Also available in: Unified diff
input.Makefile: Existing maps discovery: $(allTables): When prepending unsorted (joined) tables, save them in $(joinedTables) for later use in determining which tables should have a row_num column