r6802: - fixed CFLAGS
authorAndrew Tridgell <tridge@samba.org>
Mon, 16 May 2005 01:17:44 +0000 (01:17 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:16:45 +0000 (13:16 -0500)
- don't fail if we don't have xsltproc
(This used to be commit 235f5c510b4b68edf2a36d049bc0ff2afb73fd72)

source4/lib/talloc/Makefile.in

index faf4382b39efa4350cfb6b07dd9ebd5d2fa916f5..6efa9e19209203a3d4ee94abcc64db14aca617bb 100644 (file)
@@ -1,4 +1,3 @@
-OPT = -O
 prefix = @prefix@
 exec_prefix = @exec_prefix@
 includedir = @includedir@
@@ -7,8 +6,7 @@ mandir = @mandir@
 XSLTPROC = @XSLTPROC@
 INSTALLCMD = @INSTALL@
 CC = @CC@
-
-CFLAGS = $(OPT)
+CFLAGS=@CFLAGS@
 
 LIBOBJ = talloc.o
 
@@ -26,15 +24,15 @@ install: all doc
        ${INSTALLCMD} -m 644 talloc.h $(includedir)
        ${INSTALLCMD} -m 644 talloc.pc $(libdir)/pkgconfig
        ${INSTALLCMD} -d ${mandir}/man3
-       ${INSTALLCMD} -m 644 talloc.3 $(mandir)/man3
+       test -z "$(XSLTPROC)" || ${INSTALLCMD} -m 644 talloc.3 $(mandir)/man3
 
 doc: talloc.3
 
 %.3: %.3.xml
-       $(XSLTPROC) -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
+       test -z "$(XSLTPROC)" || $(XSLTPROC) -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
 
 %.html: %.xml
-       $(XSLTPROC) -o $@ http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl $<
+       test -z "$(XSLTPROC)" || $(XSLTPROC) -o $@ http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl $<
 
 clean:
        rm -f *~ *.o testsuite *.gc??