They contain data on the lengths of fields, which can be used by the
various programs
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