Define 'datadir' in make files.
authoraland <aland>
Tue, 24 Dec 2002 16:49:34 +0000 (16:49 +0000)
committeraland <aland>
Tue, 24 Dec 2002 16:49:34 +0000 (16:49 +0000)
New make file for the 'doc' directory, so that we actually
install the documentation along with the server.

Updated make file for the 'doc/rfc' directory, which assume that
perl exists...  but that can be fixed later.

Make.inc.in
doc/Makefile [new file with mode: 0644]
doc/rfc/Makefile

index 123d965..722a95e 100644 (file)
@@ -13,6 +13,7 @@ libdir                = @libdir@
 bindir         = @bindir@
 sbindir                = @sbindir@
 mandir         = @mandir@
+datadir                = @datadir@
 logdir         = @logdir@
 raddbdir       = @raddbdir@
 radacctdir     = @radacctdir@
diff --git a/doc/Makefile b/doc/Makefile
new file mode 100644 (file)
index 0000000..7edb262
--- /dev/null
@@ -0,0 +1,34 @@
+#
+# Makefile
+#
+# Version:     $Id$
+#
+
+include ../Make.inc
+
+SUBDIRS                = rfc
+WHAT_TO_MAKE   = all
+
+DOCS = aaa.txt ascend Autz-Type bay bugs cisco coding-methods.txt configurable_failover DIFFS duplicate-users MACOSX module_interface OS2 performance-testing processing_users_file proxy RADIUS-LDAP.schema RADIUS-LDAPv3.schema RADIUS-SQL.schema radrelay README Simultaneous-Use supervise-radiusd.txt tuning_guide variables.txt
+
+
+all:
+       @$(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common
+
+clean:
+       @$(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common
+       @rm -f include/*~ *~
+
+install:
+       $(INSTALL) -d -m 755    $(R)$(datadir)/doc
+       $(INSTALL) -d -m 755    $(R)$(datadir)/doc/freeradius-$(RADIUSD_VERSION)
+       for i in $(DOCS) rlm_*; do \
+               $(INSTALL) -m 644 $$i $(R)$(datadir)/doc/freeradius-$(RADIUSD_VERSION); \
+       done
+       @$(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common
+
+common:
+       @for dir in $(SUBDIRS); do \
+               echo "Making $(WHAT_TO_MAKE) in $$dir..."; \
+               (cd $$dir && $(MAKE) $(MFLAGS) $(WHAT_TO_MAKE)) || exit 1;\
+       done
index 02f8091..d81ea5d 100644 (file)
@@ -1,3 +1,5 @@
+include ../../Make.inc
+
 RFC    = rfc2548.txt rfc2865.txt rfc2866.txt rfc2867.txt rfc2868.txt \
          rfc2869.txt rfc3162.txt 
 
@@ -8,4 +10,10 @@ refs: $(RFC)
        ./genref.pl $(RFC) > refs
 
 clean:
-       rm -f refs *.html
+       rm -f refs *.html *~
+
+install:
+       $(INSTALL) -d -m 755    $(R)$(datadir)/doc/freeradius-$(RADIUSD_VERSION)/rfc
+       for i in *.txt *.html; do \
+               $(INSTALL) -m 644 $$i $(R)$(datadir)/doc/freeradius-$(RADIUSD_VERSION)/rfc; \
+       done