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
##### 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
.Veg+.terms.csv.last_cleanup: .%.last_cleanup: %
25
	$(bin)/in_place $< $(bin)/sort_map
26
	touch $@
27

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

    
33
else
34
$(inputCoreMaps): _always
35
	$(MAKE) $(@:%=.%.last_cleanup)
36
endif
(5-5/13)