Revision 2978
Added by Aaron Marcuse-Kubitza over 12 years ago
Makefile | ||
---|---|---|
7 | 7 |
|
8 | 8 |
##### General targets |
9 | 9 |
|
10 |
all = vegbien.sql vegbien_empty.sql vegbien.my.sql functions.sql\ |
|
11 |
py_functions.sql |
|
10 |
all = vegbien.sql vegbien.my.sql functions.sql py_functions.sql |
|
12 | 11 |
|
13 | 12 |
all: _always $(all) ; |
14 | 13 |
|
... | ... | |
25 | 24 |
%:: %.make |
26 | 25 |
./$< >$@ |
27 | 26 |
|
28 |
##### VegBIEN DB |
|
29 |
|
|
30 |
empty = $(SED) -n \ |
|
31 |
's/^CREATE TABLE ([0-9A-Za-z_]+) \($$/TRUNCATE \1 CASCADE;/p' <$< >$@ |
|
32 |
|
|
33 |
%_empty.sql: %.sql |
|
34 |
$(empty) |
|
35 |
|
|
36 | 27 |
##### MySQL schema for ERD |
37 | 28 |
|
38 | 29 |
repl = ../bin/repl |
Also available in: Unified diff
Removed no longer used schemas/vegbien_empty.sql