Project

General

Profile

« Previous | Next » 

Revision 350

mappings/Makefile: Sort VegX-VegBank organisms mapping automatically when anything that depends on it is remade

View differences:

mappings/Makefile
30 30
misc: $(misc)
31 31
.PRECIOUS: $(misc)
32 32

  
33
repl = ../bin/repl
34
sort = ../bin/sort 1 0
35
chRoot = ../bin/ch_root <$< >$@
33
bin = ../bin
34
in_place = $(bin)/in_place
35
repl = $(bin)/repl
36
sort = $(bin)/sort 1 0
37
chRoot = $(bin)/ch_root <$< >$@
36 38
empty = $(SED) -n \
37 39
's/^CREATE TABLE ([0-9A-Za-z_]+) \($$/TRUNCATE \1 CASCADE;/p' <$< >$@
38 40

  
......
42 44
schemas/vegbien_empty.sql: schemas/vegbien.sql
43 45
	$(empty)
44 46

  
47
VegX-VegBank.organisms.csv: _not_file
48
	$(in_place) $@ $(sort)
49

  
45 50
VegX-VegBIEN.organisms.csv: VegX-VegBank.organisms.csv
46 51
	$(repl) <$< VegBank-VegBIEN.csv 1|$(sort) >$@
47 52

  

Also available in: Unified diff