Revision 4253
Added by Aaron Marcuse-Kubitza over 12 years ago
input.Makefile | ||
---|---|---|
109 | 109 |
|
110 | 110 |
sortFile := import_order.txt |
111 | 111 |
|
112 |
ifneq ($(wildcard $(sortFile)),) |
|
113 |
tables := $(shell cat $(sortFile))# $(shell) replaces "\n" with " " |
|
114 |
else |
|
112 |
tables := $(if $(wildcard $(sortFile)),$(shell cat $(sortFile))) |
|
113 |
# $(shell) replaces "\n" with " " |
|
115 | 114 |
allSubdirs := $(call wildcard/,*/) |
116 |
tables := $(call sortFilenames,$(filter-out _% src verify,$(allSubdirs:%/=%))) |
|
115 |
allTables := $(filter-out $(tables),$(call sortFilenames,$(filter-out _%\ |
|
116 |
verify,$(allSubdirs:%/=%)))) $(tables)# prepend unsorted tables |
|
117 |
ifeq ($(tables),)# none specified in sort file |
|
118 |
tables := $(allTables) |
|
117 | 119 |
endif |
118 | 120 |
|
119 | 121 |
srcMaps := $(wildcard */src.csv) |
Also available in: Unified diff
input.Makefile: Existing maps discovery: $(tables): Prepend unsorted tables (those that are not present in import_order.txt)