hivex: Added gnulib includes from builddir, as suggested by the Gnulib documentation...
[hivex.git] / xml / Makefile.am
1 # hivex
2 # Copyright (C) 2009-2010 Red Hat Inc.
3 #
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2 of the License, or
7 # (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17
18 EXTRA_DIST = \
19         hivexml.pod
20
21 bin_PROGRAMS = hivexml
22
23 hivexml_SOURCES = \
24   hivexml.c
25
26 hivexml_LDADD = ../lib/libhivex.la ../gnulib/lib/libgnu.la $(LIBXML2_LIBS)
27 hivexml_CFLAGS = \
28   -DLOCALEBASEDIR=\""$(datadir)/locale"\" \
29   -I$(top_srcdir)/gnulib/lib \
30   -I$(top_builddir)/gnulib/lib \
31   -I$(top_srcdir)/lib \
32   $(LIBXML2_CFLAGS) \
33   $(WARN_CFLAGS) $(WERROR_CFLAGS)
34
35 man_MANS = hivexml.1
36
37 hivexml.1: hivexml.pod
38         $(POD2MAN) \
39           --section 1 \
40           -c "Windows Registry" \
41           --name "hivexml" \
42           --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
43           $< > $@-t; mv $@-t $@
44
45 noinst_DATA = \
46         $(top_builddir)/html/hivexml.1.html
47
48 $(top_builddir)/html/hivexml.1.html: hivexml.pod
49         mkdir -p $(top_builddir)/html
50         cd $(top_builddir) && pod2html \
51           --css 'pod.css' \
52           --htmldir html \
53           --outfile html/hivexml.1.html \
54           xml/hivexml.pod
55
56 CLEANFILES = $(man_MANS)