r17693: only install man pages if we have managed to generate them with
authorAndrew Tridgell <tridge@samba.org>
Tue, 22 Aug 2006 04:27:13 +0000 (04:27 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:16:26 +0000 (14:16 -0500)
xsltproc
(This used to be commit 3e48177dd138d835766cba304d266fd30a87ebef)

source4/lib/ldb/Makefile.in

index 1e19e9bd49fec580c518e9a749649d96ee46e019..7107b87daf9423b69575c6db98426923d570777c 100644 (file)
@@ -200,8 +200,8 @@ install: all
        cp $(LDB_LIB) $(libdir)
        cp $(BINS) $(bindir)
        cp ldb.pc $(libdir)/pkgconfig
-       cp $(filter %.1, $(MANPAGES)) $(mandir)/man1
-       cp $(filter %.3, $(MANPAGES)) $(mandir)/man3
+       test -z "$(XSLTPROC)" || cp $(filter %.1, $(MANPAGES)) $(mandir)/man1
+       test -z "$(XSLTPROC)" || cp $(filter %.3, $(MANPAGES)) $(mandir)/man3
 
 gcov:
        $(GCOV) -po ldb_sqlite3 $(srcdir)/ldb_sqlite3/*.c 2| tee ldb_sqlite3.report.gcov