summaryrefslogtreecommitdiff
path: root/tools/Makefile.in
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-05-05 17:15:56 +0000
committerMartin Mares <mj@ucw.cz>2000-05-05 17:15:56 +0000
commitb177724896b75159dbc8e203ac0e5a134229ae90 (patch)
tree4ff62df2354b09aad3fea8e420c6b8d35e0dc70f /tools/Makefile.in
parentc7d7794bb9a71be58d06c6c9ea67943d3e33a566 (diff)
Connected the `doc' subtree to global makefiles.
All documentation is built in obj/doc (resp. doc/ if you do a stand-alone build). Use `make docs' to make the whole documentation or `make userdocs' resp. `make progdocs' for user manual resp. developer's guide.
Diffstat (limited to 'tools/Makefile.in')
-rw-r--r--tools/Makefile.in13
1 files changed, 8 insertions, 5 deletions
diff --git a/tools/Makefile.in b/tools/Makefile.in
index 1dcb9bce..5eb71835 100644
--- a/tools/Makefile.in
+++ b/tools/Makefile.in
@@ -3,9 +3,7 @@
include Rules
-srcdir_abs := $(shell cd $(srcdir) ; pwd)
-
-.PHONY: all daemon client subdir depend clean distclean tags
+.PHONY: all daemon client subdir depend clean distclean tags docs userdocs progdocs
all: .dep-stamp subdir daemon @CLIENT@
@@ -24,18 +22,23 @@ $(exedir)/birdc: client/all.o lib/birdlib.a
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS) $(CLIENT_LIBS)
.dir-stamp:
- mkdir -p $(static-dirs) $(client-dirs)
+ mkdir -p $(static-dirs) $(client-dirs) $(doc-dirs)
touch .dir-stamp
.dep-stamp:
$(MAKE) depend
touch .dep-stamp
+docs: userdocs progdocs
+
+userdocs progdocs: .dir-stamp
+ $(MAKE) -C doc -f $(srcdir_abs)/doc/Makefile $@
+
tags:
cd $(srcdir) ; etags -lc `find $(static-dirs) $(addprefix $(objdir)/,$(dynamic-dirs)) $(client-dirs) -name *.[chY]`
clean:
- find . -name "*.[oa]" -or -name core -or -name depend | xargs rm -f
+ 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
distclean: clean