Revision 3826
Added by Aaron Marcuse-Kubitza over 12 years ago
mappings/Makefile | ||
---|---|---|
100 | 100 |
|
101 | 101 |
vegcsvMaps := |
102 | 102 |
|
103 |
VegX-VegCSV.stems.csv: # initially autogenerated |
|
104 |
env only_one=1 $(bin)/join <for_review/VegX-VegBIEN.stems.csv \ |
|
105 |
for_review/VegBIEN-DwC2.specimens.csv\ |
|
103 |
ifneq ($(filter .%.last_cleanup,$(MAKECMDGOALS)),) |
|
104 |
.VegX-VegCSV.stems.csv.last_cleanup: VegX-VegCSV.stems.csv |
|
105 |
$(bin)/in_place $< $(bin)/sort_map |
|
106 |
touch $@ |
|
107 |
else |
|
108 |
VegX-VegCSV.stems.csv: _always # initially autogenerated |
|
109 |
$(if $(wildcard $@),,env only_one=1 $(bin)/join \ |
|
110 |
<for_review/VegX-VegBIEN.stems.csv for_review/VegBIEN-DwC2.specimens.csv\ |
|
106 | 111 |
|$(bin)/remove_empty\ |
107 | 112 |
|$(bin)/union VegX.self.stems.csv\ |
108 | 113 |
|$(bin)/union <(echo ',VegCSV[DwC]')\ |
109 | 114 |
|$(bin)/review 1\ |
110 |
|$(bin)/sort_map >$@ |
|
115 |
>$@) |
|
116 |
$(MAKE) $(@:%=.%.last_cleanup) |
|
117 |
endif |
|
111 | 118 |
vegcsvMaps += VegX-VegCSV.stems.csv |
112 | 119 |
|
113 | 120 |
VegCSV-VegBIEN.specimens.csv: VegX-VegCSV.stems.csv VegX-VegBIEN.stems.csv\ |
Also available in: Unified diff
mappings/Makefile: VegX-VegCSV.stems.csv: Clean up when edited using sort_map