Auto generate enum*.h file

This commit is contained in:
Mark Andrews 1999-01-28 05:16:42 +00:00
parent 0c67279acb
commit 6d7585b3e9

View file

@ -16,7 +16,7 @@ OBJS = name.o rbt.o rdata.o rdatalist.o rdataset.o \
result.o version.o rdataslab.o master.o
SUBDIRS = include
TARGETS = timestamp
TARGETS = include/dns/enumtype.h include/dns/enumclass.h timestamp
@BIND9_MAKE_RULES@
@ -40,9 +40,16 @@ install:: timestamp installdirs
clean distclean::
rm -f libdns.a timestamp
rm -f code.h include/dns/enumtype.h include/dns/enumclass.h
rdata.o: code.h
include/dns/enumtype.h: gen
./gen -t > $@
include/dns/enumclass.h: gen
./gen -c > $@
code.h: gen
./gen > code.h