aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-11-26 02:37:28 +0100
committerJelmer Vernooij <jelmer@samba.org>2005-11-26 02:37:28 +0100
commit513a3239198d3e4ec26799046f75206a4d9c599c (patch)
tree2137a9f559d6ddc30a02d9ef1cfa23a34768e521
parent689a6e0b8f91eecfc3add9dae769bfcda5a35b77 (diff)
Build docs by default in .bzr checkouts
-rw-r--r--Makefile1
-rw-r--r--doc/Makefile4
2 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 804de55b..47af3da8 100644
--- a/Makefile
+++ b/Makefile
@@ -17,6 +17,7 @@ subdirobjs = $(foreach dir,$(subdirs),$(dir)/$(dir).o)
CFLAGS += -Wall
all: $(OUTFILE)
+ $(MAKE) -C doc
uninstall: uninstall-bin uninstall-doc
@echo -e '\nmake uninstall does not remove files in '$(DESTDIR)$(ETCDIR)', you can use make uninstall-etc to do that.\n'
diff --git a/doc/Makefile b/doc/Makefile
index e3dde912..9b473df3 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -1,5 +1,9 @@
-include ../Makefile.settings
+all:
+ # Only build the docs if this is a bzr checkout
+ test ! -d ../.bzr || $(MAKE) -C user-guide
+
install:
mkdir -p $(DESTDIR)$(MANDIR)/man8/ $(DESTDIR)$(MANDIR)/man5/
install -m 0644 bitlbee.8 $(DESTDIR)$(MANDIR)/man8/