1
|
include ../lib/common.Makefile
|
2
|
|
3
|
|
4
|
##### Vars/functions
|
5
|
|
6
|
# Make
|
7
|
SHELL := /bin/bash
|
8
|
|
9
|
# Paths
|
10
|
bin := ../bin
|
11
|
inputCoreMaps := Veg+.terms.csv Veg+-VegCore.csv VegCore-VegBIEN.csv \
|
12
|
VegX-VegCore.csv
|
13
|
|
14
|
# Commands
|
15
|
|
16
|
review_ = $(bin)/review 1 <$(1) >for_review/$(1)
|
17
|
review = $(call review_,$@)
|
18
|
|
19
|
##### General targets
|
20
|
|
21
|
all: _always $(inputCoreMaps) ;
|
22
|
|
23
|
clean: _always
|
24
|
$(RM) $(all)
|
25
|
|
26
|
all :=
|
27
|
|
28
|
##### Core maps cleanup
|
29
|
|
30
|
ifneq ($(filter .%.last_cleanup,$(MAKECMDGOALS)),)
|
31
|
|
32
|
.Veg+.terms.csv.last_cleanup: .%.last_cleanup: %
|
33
|
$(bin)/in_place $< $(bin)/sort_map
|
34
|
touch $@
|
35
|
|
36
|
.%.last_cleanup: %
|
37
|
$(bin)/in_place $< $(bin)/sort_map
|
38
|
touch $@
|
39
|
$(call review_,$<)
|
40
|
|
41
|
else
|
42
|
$(inputCoreMaps): _always
|
43
|
$(MAKE) $(@:%=.%.last_cleanup)
|
44
|
endif
|