Build dictionary header files.
authorAlan T. DeKok <aland@freeradius.org>
Thu, 25 Sep 2008 13:04:56 +0000 (15:04 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 25 Sep 2008 13:04:56 +0000 (15:04 +0200)
src/include/Makefile

index 518d748..f05296b 100644 (file)
@@ -18,7 +18,20 @@ radpaths.h: build-radpaths-h
 distclean:
        rm -f radpaths.h
 
+dict:
+       @mkdir dict
+       @for x in ../../share/dictionary*; do \
+               ../../share/header.pl $$x > dict/`basename $$x`.h; \
+       done
+
+dictionary.h: dict
+       @echo "#ifndef _FR_DICTIONARY_H" > $@
+       @echo "#define _FR_DICTIONARY_H" >> $@
+       @echo "#include <freeradius-devel/dict/dictionary.h>" >> $@
+       @echo "#endif" >> $@
+
 clean:
+       @rm -rf dict
 
 install:
        $(INSTALL) -d -m 755 $(R)$(includedir)/freeradius