From 27f4087dcb5c8736240f415fa4be9ce437519a54 Mon Sep 17 00:00:00 2001 From: danw Date: Mon, 23 Feb 1998 19:23:00 +0000 Subject: [PATCH] build moira_schema.h and moira_schema.c from the schema.sql file. They contain data on the lengths of fields, which can be used by the various programs --- db/Imakefile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/db/Imakefile b/db/Imakefile index 40496123..0567c685 100644 --- a/db/Imakefile +++ b/db/Imakefile @@ -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 -- 2.45.2