Project

General

Profile

« Previous | Next » 

Revision 10101

inputs/input.Makefile: added $(sortFile) (import_order.txt) target which adds any missing tables to import_order.txt

View differences:

inputs/input.Makefile
97 97
dontImport = $(wildcard $(noImportFile))$(wildcard $(1)/$(noImportFile))$(if\
98 98
$(import_source),,$(filter Source,$(1)))
99 99

  
100
tables := $(if $(wildcard $(sortFile)),$(shell cat $(sortFile)))
100
sort_file_tables := $(if $(wildcard $(sortFile)),$(shell cat $(sortFile)))
101 101
    # $(shell) replaces "\n" with " "
102
tables := $(sort_file_tables)
102 103
allSubdirs := $(call wildcard/,*/)
103 104
allTables := $(call sortFilenames,$(filter-out _% verify logs,$(allSubdirs:%/=%)))
104 105
joinedTables := $(filter-out $(tables),$(allTables))
......
115 116
list_tables: _always # use `make -s` to avoid echoing commands
116 117
	@for table in $(tables); do echo "$$table"; done
117 118

  
119
$(sortFile): _always
120
	# add any missing tables to $(sortFile)
121
	$(if $(filter $(sort_file_tables),$(tables)),,$(selfMake) -s list_tables >$@)
122

  
118 123
##### SVN
119 124

  
120 125
svnFilesGlob:= */{,$(noImportFile),{,.}{map,VegBIEN}.csv{,.*},*header.*,*.sql,test.xml.ref}

Also available in: Unified diff