Project

General

Profile

1 3793 aaronmk
include ../lib/common.Makefile
2
3
4 785 aaronmk
##### Vars/functions
5
6 1272 aaronmk
# Paths
7 895 aaronmk
bin := ../bin
8 4841 aaronmk
inputCoreMaps := VegCore.csv Veg+-VegCore.csv Veg+.unmapped_terms.csv \
9
VegCore-VegBIEN.csv VegX-VegCore.csv
10 895 aaronmk
11 785 aaronmk
##### General targets
12
13 4689 aaronmk
all: _always $(inputCoreMaps) ;
14 150 aaronmk
15 383 aaronmk
clean: _always
16 196 aaronmk
	$(RM) $(all)
17 188 aaronmk
18 924 aaronmk
all :=
19
20 785 aaronmk
##### Core maps cleanup
21 198 aaronmk
22 895 aaronmk
ifneq ($(filter .%.last_cleanup,$(MAKECMDGOALS)),)
23 3967 aaronmk
24 4850 aaronmk
.VegCore.csv.last_cleanup: .%.last_cleanup: %
25
	$(bin)/in_place $< $(bin)/sort 2 0
26
	touch $@
27
28
.Veg+.unmapped_terms.csv.last_cleanup: .%.last_cleanup: %
29 3967 aaronmk
	$(bin)/in_place $< $(bin)/sort_map
30
	touch $@
31
32 895 aaronmk
.%.last_cleanup: %
33 1132 aaronmk
	$(bin)/in_place $< $(bin)/sort_map
34 895 aaronmk
	touch $@
35 4692 aaronmk
	$(bin)/review 1 <$< >for_review/$<
36 3967 aaronmk
37 895 aaronmk
else
38 1824 aaronmk
$(inputCoreMaps): _always
39 895 aaronmk
	$(MAKE) $(@:%=.%.last_cleanup)
40
endif