Commit 6d7585b3 authored by Mark Andrews's avatar Mark Andrews
Browse files

Auto generate enum*.h file

parent 0c67279a
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment