summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-06-09 06:31:43 +0000
committerMartin Mares <mj@ucw.cz>2000-06-09 06:31:43 +0000
commit99955b54be850fad280a556ca80dc21374d2c5b7 (patch)
treeeafe6ca77dd86d456c77522be8056ba1ab967a5a /tools
parenta012cbb16f3d73ca7ffafe6f7933de7369e2ee48 (diff)
Proper building and installation of documentation in the Makefiles.
Diffstat (limited to 'tools')
-rw-r--r--tools/Makefile-top.in4
-rw-r--r--tools/Makefile.in4
-rw-r--r--tools/Rules.in1
3 files changed, 7 insertions, 2 deletions
diff --git a/tools/Makefile-top.in b/tools/Makefile-top.in
index 0c600ced..fe282808 100644
--- a/tools/Makefile-top.in
+++ b/tools/Makefile-top.in
@@ -3,7 +3,7 @@
objdir=@objdir@
-all depend tags install:
+all depend tags install install-docs:
$(MAKE) -C $(objdir) $@
docs userdocs progdocs:
@@ -14,6 +14,6 @@ clean:
find . -name "*~" -or -name "*.[oa]" -or -name "\#*\#" -or -name TAGS -or -name core -or -name depend -or -name ".#*" | xargs rm -f
distclean: clean
- $(MAKE) -C doc clean
+ $(MAKE) -C doc distclean
rm -rf $(objdir)
rm -f config.* configure sysdep/autoconf.h sysdep/paths.h Makefile
diff --git a/tools/Makefile.in b/tools/Makefile.in
index fb078d7d..6f9cd2e0 100644
--- a/tools/Makefile.in
+++ b/tools/Makefile.in
@@ -54,6 +54,10 @@ install: all
echo "Not overwriting old bird.conf" ; \
fi
+install-docs:
+ $(INSTALL) -d $(docdir)
+ $(INSTALL_DATA) $(srcdir)/doc/{bird,prog}{,-*}.html $(docdir)/
+
clean:
find . -name "*.[oa]" -o -name core -o -name depend -o -name "*.html" | xargs rm -f
rm -f $(exedir)/bird $(exedir)/birdc $(exedir)/bird.ctl .dep-stamp
diff --git a/tools/Rules.in b/tools/Rules.in
index 2d2a8275..0df0feeb 100644
--- a/tools/Rules.in
+++ b/tools/Rules.in
@@ -39,6 +39,7 @@ bindir=@bindir@
sbindir=@sbindir@
sysconfdir=@sysconfdir@
localstatedir=@localstatedir@
+docdir=@prefix@/doc
ifdef source