Add HTML documentation to website.
[libguestfs.git] / hivex / Makefile.am
1 # libguestfs
2 # Copyright (C) 2009 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 = hivex.pod hivexml.pod hivexget.pod LICENSE
19
20 lib_LTLIBRARIES = libhivex.la
21
22 libhivex_la_SOURCES = \
23   hivex.c \
24   hivex.h
25
26 libhivex_la_LDFLAGS = -version-info 0:0:0
27 libhivex_la_CFLAGS = \
28   $(WARN_CFLAGS) $(WERROR_CFLAGS)
29
30 bin_PROGRAMS = hivexml hivexget
31
32 hivexml_SOURCES = \
33   hivexml.c
34
35 hivexml_LDADD = libhivex.la $(LIBXML2_LIBS)
36 hivexml_CFLAGS = \
37   $(LIBXML2_CFLAGS) \
38   $(WARN_CFLAGS) $(WERROR_CFLAGS)
39
40 hivexget_SOURCES = \
41   hivexget.c
42
43 hivexget_LDADD = libhivex.la
44 hivexget_CFLAGS = \
45   $(WARN_CFLAGS) $(WERROR_CFLAGS)
46
47 man_MANS = hivex.3 hivexml.1 hivexget.1
48
49 hivex.3: hivex.pod
50         $(POD2MAN) \
51           --section 3 \
52           -c "Windows Registry" \
53           --name "hivex" \
54           --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
55           $< > $@-t; mv $@-t $@
56
57 hivexml.1: hivexml.pod
58         $(POD2MAN) \
59           --section 1 \
60           -c "Windows Registry" \
61           --name "hivexml" \
62           --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
63           $< > $@-t; mv $@-t $@
64
65 hivexget.1: hivexget.pod
66         $(POD2MAN) \
67           --section 1 \
68           -c "Windows Registry" \
69           --name "hivexget" \
70           --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
71           $< > $@-t; mv $@-t $@
72
73 noinst_DATA = \
74         $(top_builddir)/html/hivex.3.html \
75         $(top_builddir)/html/hivexml.1.html \
76         $(top_builddir)/html/hivexget.1.html
77
78 $(top_builddir)/html/hivex.3.html: hivex.pod
79         mkdir -p $(top_builddir)/html
80         cd $(top_builddir) && pod2html \
81           --css 'pod.css' \
82           --htmldir html \
83           --outfile html/hivex.3.html \
84           hivex/hivex.pod
85
86 $(top_builddir)/html/hivexml.1.html: hivexml.pod
87         mkdir -p $(top_builddir)/html
88         cd $(top_builddir) && pod2html \
89           --css 'pod.css' \
90           --htmldir html \
91           --outfile html/hivexml.1.html \
92           hivex/hivexml.pod
93
94 $(top_builddir)/html/hivexget.1.html: hivexget.pod
95         mkdir -p $(top_builddir)/html
96         cd $(top_builddir) && pod2html \
97           --css 'pod.css' \
98           --htmldir html \
99           --outfile html/hivexget.1.html \
100           hivex/hivexget.pod