]> andersk Git - moira.git/commitdiff
build moira_schema.h and moira_schema.c from the schema.sql file.
authordanw <danw>
Mon, 23 Feb 1998 19:23:00 +0000 (19:23 +0000)
committerdanw <danw>
Mon, 23 Feb 1998 19:23:00 +0000 (19:23 +0000)
They contain data on the lengths of fields, which can be used by the
various programs

db/Imakefile

index 40496123cbb769baaa71e6a90a82085e1b980fa1..0567c6851503ab9080d5ea0b2ea79632486930e9 100644 (file)
@@ -13,4 +13,15 @@ CODE= Imakefile schema.sql unschema.sql dbopt.sql
 
 depend:: ${CODE}
 
-all:
\ No newline at end of file
+depend:: moira_schema.c moira_schema.h
+
+moira_schema.h: schema.sql
+       tr '[a-z]' '[A-Z]' < schema.sql | awk -f doschema.awk > moira_schema.h
+
+moira_schema.c: schema.sql
+       awk -f doschema.awk < schema.sql > moira_schema.c
+
+clean::
+       rm -f moira_schema.h moira_schema.c
+
+all: moira_schema.h moira_schema.c moira_schema.o
This page took 0.029224 seconds and 5 git commands to generate.