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
|
review = $(call review_,$@)
|
15
|
|
16
|
##### General targets
|
17
|
|
18
|
all: _always $(inputCoreMaps) ;
|
19
|
|
20
|
clean: _always
|
21
|
$(RM) $(all)
|
22
|
|
23
|
all :=
|
24
|
|
25
|
##### Core maps cleanup
|
26
|
|
27
|
ifneq ($(filter .%.last_cleanup,$(MAKECMDGOALS)),)
|
28
|
|
29
|
.Veg+.terms.csv.last_cleanup: .%.last_cleanup: %
|
30
|
$(bin)/in_place $< $(bin)/sort_map
|
31
|
touch $@
|
32
|
|
33
|
.%.last_cleanup: %
|
34
|
$(bin)/in_place $< $(bin)/sort_map
|
35
|
touch $@
|
36
|
$(call review_,$<)
|
37
|
|
38
|
else
|
39
|
$(inputCoreMaps): _always
|
40
|
$(MAKE) $(@:%=.%.last_cleanup)
|
41
|
endif
|