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-861f7616d084
master
Giel van Schijndel 2008-07-03 19:23:38 +00:00
parent 14d3ccca36
commit 8a0dcfa4ac
1 changed files with 17 additions and 0 deletions

View File

@ -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