hivex: Added gnulib includes from builddir, as suggested by the Gnulib documentation...
[hivex.git] / sh / 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         hivexget.pod \
20         hivexget \
21         hivexsh.pod \
22         example1 \
23         example2 \
24         example3 \
25         example4 \
26         example5 \
27         example6
28
29 bin_PROGRAMS = hivexsh
30 bin_SCRIPTS = hivexget
31 noinst_SCRIPTS = example1 example2 example3 example4 example5 example6
32
33 hivexsh_SOURCES = \
34   hivexsh.c \
35   ../lib/hivex.h \
36   ../lib/byte_conversions.h
37
38 hivexsh_LDADD = ../lib/libhivex.la ../gnulib/lib/libgnu.la $(LIBREADLINE)
39 hivexsh_CFLAGS = \
40   -I$(top_srcdir)/gnulib/lib \
41   -I$(top_builddir)/gnulib/lib \
42   -I$(top_srcdir)/lib \
43   -DLOCALEBASEDIR=\""$(datadir)/locale"\" \
44   $(WARN_CFLAGS) $(WERROR_CFLAGS)
45
46 man_MANS = hivexget.1 hivexsh.1
47
48 hivexget.1: hivexget.pod
49         $(POD2MAN) \
50           --section 1 \
51           -c "Windows Registry" \
52           --name "hivexget" \
53           --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
54           $< > $@-t; mv $@-t $@
55
56 hivexsh.1: hivexsh.pod
57         $(POD2MAN) \
58           --section 1 \
59           -c "Windows Registry" \
60           --name "hivexsh" \
61           --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
62           $< > $@-t; mv $@-t $@
63
64 noinst_DATA = \
65         $(top_builddir)/html/hivexget.1.html \
66         $(top_builddir)/html/hivexsh.1.html
67
68 $(top_builddir)/html/hivexget.1.html: hivexget.pod
69         mkdir -p $(top_builddir)/html
70         cd $(top_builddir) && pod2html \
71           --css 'pod.css' \
72           --htmldir html \
73           --outfile html/hivexget.1.html \
74           sh/hivexget.pod
75
76 $(top_builddir)/html/hivexsh.1.html: hivexsh.pod
77         mkdir -p $(top_builddir)/html
78         cd $(top_builddir) && pod2html \
79           --css 'pod.css' \
80           --htmldir html \
81           --outfile html/hivexsh.1.html \
82           sh/hivexsh.pod
83
84 CLEANFILES = $(man_MANS)