added installation rules for files in the ./raddb directory,
authoraland <aland>
Thu, 13 Apr 2000 14:52:27 +0000 (14:52 +0000)
committeraland <aland>
Thu, 13 Apr 2000 14:52:27 +0000 (14:52 +0000)
as stolen from Cistron-1.6.3, and as pointed out on the list
by Bill Rogers <freeradius@yahoo.com>

This might actually help move the server from alpha to beta stage..

Makefile

index 59c2c29..381558e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -21,6 +21,23 @@ clean:
 
 install:
        @$(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common
+       # Install the config files
+       @echo "Creating/updating files in $(raddbdir)"; \
+       cd ../raddb; \
+       for i in [a-c]* [e-z]*; do \
+               [ ! -f $(raddbdir)/$$i ] && cp $$i $(raddbdir)/$$i; \
+       done; \
+       for i in dictionary*; do \
+               [ ! -f $(raddbdir)/$$i ] && cp $$i $(raddbdir)/$$i; \
+               if [ $$i -nt $(raddbdir)/$$i ]; then \
+                       echo "** $(raddbdir)/$$i"; \
+                       nt=1; \
+               fi; \
+       done; \
+       if [ "$$nt" ]; then \
+               echo "** The samples in ../raddb are newer than these files";\
+               echo "** Please investigate and copy manually if appropriate";\
+       fi
 
 common:
        @for dir in $(SUBDIRS); do \
@@ -33,6 +50,10 @@ distclean: clean
        -find . ! -name configure.in -name \*.in -print | \
                sed 's/\.in$$//' | \
                while read file; do rm -f $$file; done
+       -find src/modules -name config.mak | \
+               while read file; do rm -f $$file; done
+       -find src/modules -name config.h | \
+               while read file; do rm -f $$file; done
 
 ######################################################################
 #