1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

r14587: Allow building without GNU make and/or without xsltproc

(This used to be commit 33709dc5b3)
This commit is contained in:
Jelmer Vernooij 2006-03-20 20:53:00 +00:00 committed by Gerald (Jerry) Carter
parent c67c125850
commit dbbf90d8a2
2 changed files with 12 additions and 4 deletions

View File

@ -7,17 +7,20 @@ XSLTPROC = @XSLTPROC@
INSTALLCMD = @INSTALL@
CC = @CC@
CFLAGS = @CFLAGS@ -DHAVE_CONFIG_H=
EXTRA_TARGETS = @DOC_TARGET@
.SUFFIXES: .c .o .3 .3.xml .xml .html
LIBOBJ = talloc.o
all: libtalloc.a testsuite
all: libtalloc.a testsuite $(EXTRA_TARGETS)
testsuite: $(LIBOBJ) testsuite.o
$(CC) $(CFLAGS) -o testsuite testsuite.o $(LIBOBJ) $(LIBS)
libtalloc.a: libtalloc.a($(LIBOBJ))
install: all doc
install: all
${INSTALLCMD} -d ${libdir}
${INSTALLCMD} -m 755 libtalloc.a $(libdir)
${INSTALLCMD} -d ${includedir}
@ -28,10 +31,10 @@ install: all doc
doc: talloc.3
%.3: %.3.xml
.3.xml.3:
test -z "$(XSLTPROC)" || $(XSLTPROC) -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
%.html: %.xml
.xml.html:
test -z "$(XSLTPROC)" || $(XSLTPROC) -o $@ http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl $<
clean:

View File

@ -6,6 +6,11 @@ if test "x$GCC" = "xyes"; then
fi
AC_PROG_INSTALL
AC_PATH_PROG(XSLTPROC,xsltproc)
DOC_TARGET=""
if test -n "$XSLTPROC"; then
DOC_TARGET=doc
fi
AC_SUBST(DOC_TARGET)
AC_CONFIG_HEADER(config.h)
sinclude(config.m4)
AC_OUTPUT(Makefile talloc.pc)