bc841e0f079966640b7479514c365337650af254
[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 $(LIBXML2_LIBS)
27 hivexml_CFLAGS = \
28   -DLOCALEBASEDIR=\""$(datadir)/locale"\" \
29   -I$(top_srcdir)/gnulib/lib \
30   -I$(top_srcdir)/lib \
31   $(LIBXML2_CFLAGS) \
32   $(WARN_CFLAGS) $(WERROR_CFLAGS)
33
34 man_MANS = hivexml.1
35
36 hivexml.1: hivexml.pod
37         $(POD2MAN) \
38           --section 1 \
39           -c "Windows Registry" \
40           --name "hivexml" \
41           --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
42           $< > $@-t; mv $@-t $@
43
44 noinst_DATA = \
45         $(top_builddir)/html/hivexml.1.html
46
47 $(top_builddir)/html/hivexml.1.html: hivexml.pod
48         mkdir -p $(top_builddir)/html
49         cd $(top_builddir) && pod2html \
50           --css 'pod.css' \
51           --htmldir html \
52           --outfile html/hivexml.1.html \
53           lib/hivexml.pod