r6622: Add talloc manpage in DocBook XML, based on SGML version by Garry Williams
[samba.git] / source / lib / talloc / Makefile.in
1 #OPT = -g -ftest-coverage -fprofile-arcs 
2 #LIBS = -lgcov
3 OPT = -O
4 prefix = @prefix@
5 exec_prefix = @exec_prefix@
6 includedir = @includedir@
7 libdir = @libdir@
8 mandir = @mandir@
9 XSLTPROC = @XSLTPROC@
10
11 CFLAGS = $(OPT) -Wall
12
13 LIBOBJ = talloc.o
14
15 all: libtalloc.a testsuite 
16
17 testsuite: $(LIBOBJ) testsuite.o
18         $(CC) $(CFLAGS) -o testsuite testsuite.o $(LIBOBJ) $(LIBS)
19
20 libtalloc.a: libtalloc.a($(LIBOBJ))
21
22 install: all doc
23         cp libtalloc.a $(libdir)
24         cp talloc.h $(includedir)
25         cp talloc.pc $(libdir)/pkgconfig
26         cp talloc.3 $(mandir)/man3
27
28 doc: talloc.3
29
30 %.3: %.3.xml
31         $(XSLTPROC) -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
32
33 %.html: %.xml
34         $(XSLTPROC) -o $@ http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl $<
35
36 clean:
37         rm -f *~ *.o testsuite *.gc??
38
39 gcov:
40         gcov talloc.c