Project

General

Profile

1
include ../lib/common.Makefile
2

    
3

    
4
##### Vars/functions
5

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

    
11
# Commands
12

    
13
review_ = $(bin)/review 1 <$(1) >for_review/$(1)
14

    
15
##### General targets
16

    
17
all: _always $(inputCoreMaps) ;
18

    
19
clean: _always
20
	$(RM) $(all)
21

    
22
all :=
23

    
24
##### Core maps cleanup
25

    
26
ifneq ($(filter .%.last_cleanup,$(MAKECMDGOALS)),)
27

    
28
.Veg+.terms.csv.last_cleanup: .%.last_cleanup: %
29
	$(bin)/in_place $< $(bin)/sort_map
30
	touch $@
31

    
32
.%.last_cleanup: %
33
	$(bin)/in_place $< $(bin)/sort_map
34
	touch $@
35
	$(call review_,$<)
36

    
37
else
38
$(inputCoreMaps): _always
39
	$(MAKE) $(@:%=.%.last_cleanup)
40
endif
(5-5/13)