Project

General

Profile

1
include ../lib/common.Makefile
2

    
3

    
4
##### Vars/functions
5

    
6
# Paths
7
bin := ../bin
8
inputCoreMaps := VegCore.csv Veg+-VegCore.csv Veg+.unmapped_terms.csv \
9
VegCore-VegBIEN.csv VegX-VegCore.csv
10

    
11
##### General targets
12

    
13
all: _always $(inputCoreMaps) ;
14

    
15
clean: _always
16
	$(RM) $(all)
17

    
18
all :=
19

    
20
##### Core maps cleanup
21

    
22
ifneq ($(filter .%.last_cleanup,$(MAKECMDGOALS)),)
23

    
24
.VegCore.csv.last_cleanup .Veg+.unmapped_terms.csv.last_cleanup: \
25
.%.last_cleanup: %
26
	$(bin)/in_place $< $(bin)/sort_map
27
	touch $@
28

    
29
.%.last_cleanup: %
30
	$(bin)/in_place $< $(bin)/sort_map
31
	touch $@
32
	$(bin)/review 1 <$< >for_review/$<
33

    
34
else
35
$(inputCoreMaps): _always
36
	$(MAKE) $(@:%=.%.last_cleanup)
37
endif
(6-6/15)