]> andersk Git - moira.git/blob - db/Imakefile
build moira_schema.h and moira_schema.c from the schema.sql file.
[moira.git] / db / Imakefile
1 # $Header$
2 #
3 # Copyright 1990 by the Massachusetts Institute of Technology.
4 #
5 # For copying and distribution information,
6 # please see the file <mit-copyright.h>.
7 #
8 # Imakefile for db directory.
9 #
10
11 SRCDIR=${SRCTOP}/db
12 CODE= Imakefile schema.sql unschema.sql dbopt.sql
13
14 depend:: ${CODE}
15
16 depend:: moira_schema.c moira_schema.h
17
18 moira_schema.h: schema.sql
19         tr '[a-z]' '[A-Z]' < schema.sql | awk -f doschema.awk > moira_schema.h
20
21 moira_schema.c: schema.sql
22         awk -f doschema.awk < schema.sql > moira_schema.c
23
24 clean::
25         rm -f moira_schema.h moira_schema.c
26
27 all: moira_schema.h moira_schema.c moira_schema.o
This page took 0.170371 seconds and 5 git commands to generate.