r17238: Add datarootdir (required for newer autoconf versions)
[jelmer/samba4-debian.git] / source / lib / talloc / Makefile.in
1 prefix = @prefix@
2 datarootdir = @datarootdir@
3 exec_prefix = @exec_prefix@
4 includedir = @includedir@
5 libdir = @libdir@
6 mandir = @mandir@
7 XSLTPROC = @XSLTPROC@
8 INSTALLCMD = @INSTALL@
9 CC = @CC@
10 CFLAGS = @CFLAGS@ -DHAVE_CONFIG_H=
11 EXTRA_TARGETS = @DOC_TARGET@
12
13 .SUFFIXES: .c .o .3 .3.xml .xml .html
14
15 LIBOBJ = talloc.o
16
17 all: libtalloc.a testsuite $(EXTRA_TARGETS)
18
19 testsuite: $(LIBOBJ) testsuite.o
20         $(CC) $(CFLAGS) -o testsuite testsuite.o $(LIBOBJ) $(LIBS)
21
22 libtalloc.a: libtalloc.a($(LIBOBJ))
23
24 install: all 
25         ${INSTALLCMD} -d ${libdir}
26         ${INSTALLCMD} -m 755 libtalloc.a $(libdir)
27         ${INSTALLCMD} -d ${includedir}
28         ${INSTALLCMD} -m 644 talloc.h $(includedir)
29         ${INSTALLCMD} -m 644 talloc.pc $(libdir)/pkgconfig
30         ${INSTALLCMD} -d ${mandir}/man3
31         test -z "$(XSLTPROC)" || ${INSTALLCMD} -m 644 talloc.3 $(mandir)/man3
32
33 doc: talloc.3
34
35 .3.xml.3:
36         test -z "$(XSLTPROC)" || $(XSLTPROC) -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
37
38 .xml.html:
39         test -z "$(XSLTPROC)" || $(XSLTPROC) -o $@ http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl $<
40
41 clean:
42         rm -f *~ *.o testsuite *.gc??
43
44 test: testsuite
45         ./testsuite
46
47 gcov:
48         gcov talloc.c
49
50 installcheck: 
51         $(MAKE) test