Project

General

Profile

« Previous | Next » 

Revision 387

Moved mappings/schemas to schemas

View differences:

Makefile
1
os = $(shell uname)
2

  
3
SED = sed -$(if $(filter Darwin,$(os)),E,r)
4

  
5
#####
6

  
7
all: _always misc
8
	$(MAKE) plots
1
all: _always plots
9 2
	./join VegX VegBIEN
10 3
	./review
11 4

  
......
14 7
_always:
15 8
.PHONY: _always
16 9

  
17
misc := schemas/vegbien.sql schemas/vegbien_empty.sql
18

  
19 10
all = $(wildcard for_review/*.csv) \
20
$(filter-out VegX-%,$(wildcard *-VegBIEN.*.csv)) VegX-*.plots.csv $(misc)
11
$(filter-out VegX-%,$(wildcard *-VegBIEN.*.csv)) VegX-*.plots.csv
21 12

  
22 13
clean: _always
23 14
	$(RM) $(all)
24 15

  
25
%:: %.make
26
	./$< >$@
27
.PRECIOUS: %
28

  
29 16
#####
30 17

  
31
misc: $(misc)
32
.PRECIOUS: $(misc)
33

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

  
41
schemas/vegbien_empty.sql: schemas/vegbien.sql
42
	$(empty)
43

  
44 23
VegX-VegBIEN.organisms.csv: _always
45 24
	$(bin)/in_place $@ $(sort)
46 25

  

Also available in: Unified diff