Project

General

Profile

« Previous | Next » 

Revision 353

Add sort order prefixes to inputs/SALVIAS maps

View differences:

input.Makefile
3 3
vegxMaps := $(wildcard map.VegX.*.csv)
4 4
vegbienMaps := $(subst .VegX.,.VegBIEN.,$(vegxMaps))
5 5

  
6
table = $(shell s="$(*F)"; echo "$${s\#\#*.}")# remove sort order prefix
7

  
6 8
root := ../..
7 9
map := env out_database=vegbien $(root)/map
8 10

  
......
27 29
#####
28 30

  
29 31
map.VegBIEN.%.csv: map.VegX.%.csv
30
	$(root)/bin/join_sort <$< $(root)/mappings/VegX-VegBIEN.$(*F).csv >$@
32
	$(root)/bin/join_sort <$< $(root)/mappings/VegX-VegBIEN.$(table).csv >$@
31 33
.PRECIOUS: map.VegBIEN.%.csv
32 34

  
33 35
logs := $(wildcard *.log)

Also available in: Unified diff