Revision 10104
Added by Aaron Marcuse-Kubitza over 11 years ago
input.Makefile | ||
---|---|---|
99 | 99 |
dontImport = $(wildcard $(noImportFile))$(wildcard $(1)/$(noImportFile))$(if\ |
100 | 100 |
$(import_source),,$(filter Source,$(1))) |
101 | 101 |
|
102 |
ifeq ($(filter $(sortFile) list_tables,$(MAKECMDGOALS)),) |
|
103 |
$(shell $(selfMake) $(sortFile)|$(filter_make) >&2)# keep $(sortFile) up-to-date |
|
104 |
endif |
|
105 |
|
|
102 | 106 |
sort_file_tables := $(if $(wildcard $(sortFile)),$(shell cat $(sortFile))) |
103 | 107 |
# $(shell) replaces "\n" with " " |
104 | 108 |
tables := $(sort_file_tables) |
Also available in: Unified diff
inputs/input.Makefile: keep import_order.txt up-to-date by running `make $(sortFile)` each time make is run. this ensures that new datasources always have import_order.txt populated when make is first run. eventually, $(tables) can be always set to $(allTables) so that this auto-updating can also be used to ensure that new subdirs added by the user always make it into import_order.txt (so that they will be included in the subdirs that get remade, etc.). import_order.txt is primarily for specifying the order of the subdirs, but some datasources also use it to filter out subdirs, so it can't yet be always updated to include the full list of subdirs. however, the filter-out usage should no longer be necessary after the switch to new-style import.