Add Makefile to produce test-output from test-input for DB mini language code generators
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5370 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
14d3ccca36
commit
8a0dcfa4ac
|
@ -0,0 +1,17 @@
|
|||
DB_TEMPLATES=test_code.tpl
|
||||
|
||||
C_HEADERS=$(DB_TEMPLATES:%.tpl=%.h)
|
||||
SQL_TABLES=$(DB_TEMPLATES:%.tpl=%.sql)
|
||||
|
||||
all: $(C_HEADERS) $(SQL_TABLES)
|
||||
|
||||
%.h: %.tpl
|
||||
./db-lang.pl c_structdef $< > $@
|
||||
|
||||
%.sql: %.tpl
|
||||
./db-lang.pl sql_tabledef $< > $@
|
||||
|
||||
clean:
|
||||
rm -f $(C_HEADERS) $(SQL_TABLES)
|
||||
|
||||
.PHONY: all clean
|
Loading…
Reference in New Issue