Revision 7636
Added by Aaron Marcuse-Kubitza almost 12 years ago
inputs/FIA/_src/Makefile | ||
---|---|---|
41 | 41 |
|
42 | 42 |
##### Table bundling |
43 | 43 |
|
44 |
refCsvPattern := FIADB_REFERENCE/%.CSV |
|
45 |
refCsvPattern* := $(subst %,*,$(refCsvPattern)) |
|
46 |
refDirCsvs := $(wildcard $(refCsvPattern*)) |
|
47 |
refTables := $(patsubst $(refCsvPattern),%,$(refDirCsvs)) |
|
48 |
refDirs := $(refTables:%=../%) |
|
49 |
|
|
44 | 50 |
csvPattern = $(dir)/$(dir)_%.CSV |
45 | 51 |
csvPattern* = $(subst %,*,$(csvPattern)) |
46 | 52 |
dirCsvs = $(wildcard $(csvPattern*)) |
... | ... | |
48 | 54 |
tableNames := $(sort $(foreach dir,$(dirs),$(dirTables))) |
49 | 55 |
tableDirs := $(tableNames:%=../%) |
50 | 56 |
|
51 |
tables: _always $(tableDirs) ; |
|
57 |
tables: _always $(refDirs) $(tableDirs) ;
|
|
52 | 58 |
|
53 | 59 |
tableCsvs = $(wildcard $(foreach dir,$(dirs),$(subst %,$*,$(csvPattern)))) |
54 | 60 |
|
55 | 61 |
$(tableDirs): ../%: _always |
56 | 62 |
$(call mkdir,$@) |
57 | 63 |
$(if $(tableCsvs),mv $(tableCsvs) $@) |
64 |
|
|
65 |
../%: $(refCsvPattern) _always |
|
66 |
$(call mkdir,$@) |
|
67 |
mv $< $@ |
Also available in: Unified diff
inputs/FIA/_src/Makefile: Table bundling: Also unpack FIADB_REFERENCE/