089837041eb230d734c04574e604413681239b08
[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_srcdir)/lib \
42   -DLOCALEBASEDIR=\""$(datadir)/locale"\" \
43   $(WARN_CFLAGS) $(WERROR_CFLAGS)
44
45 man_MANS = hivexget.1 hivexsh.1
46
47 hivexget.1: hivexget.pod
48         $(POD2MAN) \
49           --section 1 \
50           -c "Windows Registry" \
51           --name "hivexget" \
52           --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
53           $< > $@-t; mv $@-t $@
54
55 hivexsh.1: hivexsh.pod
56         $(POD2MAN) \
57           --section 1 \
58           -c "Windows Registry" \
59           --name "hivexsh" \
60           --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
61           $< > $@-t; mv $@-t $@
62
63 noinst_DATA = \
64         $(top_builddir)/html/hivexget.1.html \
65         $(top_builddir)/html/hivexsh.1.html
66
67 $(top_builddir)/html/hivexget.1.html: hivexget.pod
68         mkdir -p $(top_builddir)/html
69         cd $(top_builddir) && pod2html \
70           --css 'pod.css' \
71           --htmldir html \
72           --outfile html/hivexget.1.html \
73           sh/hivexget.pod
74
75 $(top_builddir)/html/hivexsh.1.html: hivexsh.pod
76         mkdir -p $(top_builddir)/html
77         cd $(top_builddir) && pod2html \
78           --css 'pod.css' \
79           --htmldir html \
80           --outfile html/hivexsh.1.html \
81           sh/hivexsh.pod
82
83 CLEANFILES = $(man_MANS)