summaryrefslogtreecommitdiffstats
path: root/ctdb/Makefile.in
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2012-10-17 10:09:26 +1100
committerAmitay Isaacs <amitay@gmail.com>2012-10-22 18:15:17 +1100
commit43b25d1948718e2c0328e726ee0bec49d2739fa7 (patch)
treeedec5937af28b41b81fc844ac8120779bbe3505f /ctdb/Makefile.in
parent5b6625793da883c3e392f8083cea637e8bde1c53 (diff)
downloadsamba-43b25d1948718e2c0328e726ee0bec49d2739fa7.tar.gz
samba-43b25d1948718e2c0328e726ee0bec49d2739fa7.tar.xz
samba-43b25d1948718e2c0328e726ee0bec49d2739fa7.zip
build: Extract building of manpages in a separate Makefile
This can then be used to build manpages/html when creating tarball. Do not build docs during a regular build, but only for install. Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 3274cffe2052953b34141a82de6053b747532a88)
Diffstat (limited to 'ctdb/Makefile.in')
-rwxr-xr-xctdb/Makefile.in19
1 files changed, 5 insertions, 14 deletions
diff --git a/ctdb/Makefile.in b/ctdb/Makefile.in
index efc6622febb..cffcf4ac066 100755
--- a/ctdb/Makefile.in
+++ b/ctdb/Makefile.in
@@ -110,9 +110,9 @@ SBINS = bin/ctdbd
DIRS = lib bin tests/bin
-.SUFFIXES: .c .o .h .1 .1.xml .1.html
+.SUFFIXES: .c .o .h
-all: showflags dirs doc $(CTDB_SERVER_OBJ) $(CTDB_CLIENT_OBJ) $(CTDB_LIB_OBJ) $(BINS) $(SBINS) $(TEST_BINS)
+all: showflags dirs $(CTDB_SERVER_OBJ) $(CTDB_CLIENT_OBJ) $(CTDB_LIB_OBJ) $(BINS) $(SBINS) $(TEST_BINS)
showflags:
@echo 'ctdb will be compiled with flags:'
@@ -285,17 +285,8 @@ tests/bin/ibwrapper_test: $(CTDB_CLIENT_OBJ) ib/ibwrapper_test.o
@echo Linking $@
@$(CC) $(CFLAGS) -o $@ ib/ibwrapper_test.o $(CTDB_CLIENT_OBJ) $(LIB_FLAGS)
-.1.xml.1:
- -test -z "$(XSLTPROC)" || $(XSLTPROC) -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
-
-.1.xml.1.html:
- -test -z "$(XSLTPROC)" || $(XSLTPROC) -o $@ http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl $<
-
-doc: doc/ctdb.1 doc/ctdb.1.html \
- doc/ctdbd.1 doc/ctdbd.1.html \
- doc/onnode.1 doc/onnode.1.html \
- doc/ltdbtool.1 doc/ltdbtool.1.html \
- doc/ping_pong.1 doc/ping_pong.1.html
+manpages:
+ $(MAKE) -C doc
clean:
rm -f *.o */*.o */*.a */*/*.o */*~
@@ -308,7 +299,7 @@ distclean: clean
rm -f config.log config.status config.cache config.h
rm -f Makefile
-install: all $(PMDA_INSTALL)
+install: all manpages $(PMDA_INSTALL)
mkdir -p $(DESTDIR)$(libdir)/pkgconfig
mkdir -p $(DESTDIR)$(bindir)
mkdir -p $(DESTDIR)$(sbindir)