Revision 1115
Added by Aaron Marcuse-Kubitza almost 13 years ago
Makefile | ||
---|---|---|
2 | 2 |
|
3 | 3 |
bin := ../bin |
4 | 4 |
|
5 |
review = $(bin)/review <$(1) >for_review/$(1) |
|
5 |
review_ = $(bin)/review <$(1) >for_review/$(1) |
|
6 |
review = $(call review_,$@) |
|
6 | 7 |
|
7 | 8 |
coreMaps := DwC-VegBIEN.specimens.csv VegX-VegBIEN.organisms.csv |
8 | 9 |
|
9 | 10 |
##### General targets |
10 | 11 |
|
11 |
all: _always $(coreMaps) ch_root_maps ; |
|
12 |
all: _always $(coreMaps) join_maps ch_root_maps ;
|
|
12 | 13 |
|
13 | 14 |
.SUFFIXES: |
14 | 15 |
|
... | ... | |
29 | 30 |
$(bin)/in_place $< $(bin)/simplify_xpath |
30 | 31 |
$(bin)/in_place $< $(bin)/sort 1 0 |
31 | 32 |
touch $@ |
32 |
$(call review,$<) |
|
33 |
$(call review_,$<)
|
|
33 | 34 |
.PRECIOUS: .%.last_cleanup |
34 | 35 |
else |
35 | 36 |
$(coreMaps): _always |
36 | 37 |
$(MAKE) $(@:%=.%.last_cleanup) |
37 | 38 |
endif |
38 | 39 |
|
40 |
##### Maps generated with join |
|
41 |
|
|
42 |
define join |
|
43 |
$(bin)/join_sort <$+ >$@ |
|
44 |
$(review) |
|
45 |
endef |
|
46 |
|
|
47 |
joinMaps := |
|
48 |
|
|
49 |
DwC1-VegBIEN.specimens.csv: DwC1-DwC.specimens.csv DwC-VegBIEN.specimens.csv |
|
50 |
$(join) |
|
51 |
joinMaps += DwC1-VegBIEN.specimens.csv |
|
52 |
|
|
53 |
join_maps: $(joinMaps) ; |
|
54 |
|
|
55 |
all += $(joinMaps) |
|
56 |
|
|
39 | 57 |
##### Maps generated with ch_root |
40 | 58 |
|
41 | 59 |
define chRoot |
42 | 60 |
$(bin)/ch_root <$< >$@ |
43 |
$(call review,$@)
|
|
61 |
$(review)
|
|
44 | 62 |
endef |
45 | 63 |
|
46 | 64 |
chRootMaps := |
Also available in: Unified diff
Added DwC1-DwC mapping. Generate DwC1-VegBIEN mapping automatically.