Revision 895
Added by Aaron Marcuse-Kubitza almost 13 years ago
Makefile | ||
---|---|---|
1 | 1 |
##### Vars/functions |
2 | 2 |
|
3 |
bin := ../bin |
|
4 |
|
|
3 | 5 |
coreMaps := DwC-VegBIEN.specimens.csv VegX-VegBIEN.organisms.csv |
4 | 6 |
chRootMaps := VegX-VegBIEN.plots.csv VegX-VegBIEN.stems.csv |
5 | 7 |
all := $(wildcard for_review/*) $(chRootMaps) |
... | ... | |
21 | 23 |
|
22 | 24 |
##### Core maps cleanup |
23 | 25 |
|
24 |
bin := ../bin |
|
25 |
|
|
26 |
$(coreMaps): %: .%.last_cleanup |
|
27 |
$(bin)/in_place $@ $(bin)/simplify_xpath |
|
28 |
$(bin)/in_place $@ $(bin)/sort 1 0 |
|
29 |
touch -r $@ $< |
|
26 |
ifneq ($(filter .%.last_cleanup,$(MAKECMDGOALS)),) |
|
27 |
.%.last_cleanup: % |
|
28 |
$(bin)/in_place $< $(bin)/simplify_xpath |
|
29 |
$(bin)/in_place $< $(bin)/sort 1 0 |
|
30 |
touch $@ |
|
30 | 31 |
.PRECIOUS: .%.last_cleanup |
31 |
# Ignore last_cleanup file if it doesn't exist |
|
32 |
.%.last_cleanup: |
|
32 |
else |
|
33 |
$(coreMaps): _always |
|
34 |
$(MAKE) $(@:%=.%.last_cleanup) |
|
35 |
endif |
|
33 | 36 |
|
34 | 37 |
##### Maps generated with ch_root |
35 | 38 |
|
Also available in: Unified diff
mappings/Makefile: Fixed bug in rules for cleaning up core maps whenever they change, which had the target and prerequisite reversed