Set locale in C programs so l10n works (RHBZ#559962).
[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   -I$(top_srcdir)/src \
38   -DLOCALEBASEDIR=\""$(datadir)/locale"\" \
39   $(LIBXML2_CFLAGS) \
40   $(WARN_CFLAGS) $(WERROR_CFLAGS)
41
42 hivexget_SOURCES = \
43   hivexget.c
44
45 hivexget_LDADD = libhivex.la
46 hivexget_CFLAGS = \
47   -I$(top_srcdir)/src \
48   -DLOCALEBASEDIR=\""$(datadir)/locale"\" \
49   $(WARN_CFLAGS) $(WERROR_CFLAGS)
50
51 man_MANS = hivex.3 hivexml.1 hivexget.1
52
53 hivex.3: hivex.pod
54         $(POD2MAN) \
55           --section 3 \
56           -c "Windows Registry" \
57           --name "hivex" \
58           --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
59           $< > $@-t; mv $@-t $@
60
61 hivexml.1: hivexml.pod
62         $(POD2MAN) \
63           --section 1 \
64           -c "Windows Registry" \
65           --name "hivexml" \
66           --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
67           $< > $@-t; mv $@-t $@
68
69 hivexget.1: hivexget.pod
70         $(POD2MAN) \
71           --section 1 \
72           -c "Windows Registry" \
73           --name "hivexget" \
74           --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
75           $< > $@-t; mv $@-t $@
76
77 noinst_DATA = \
78         $(top_builddir)/html/hivex.3.html \
79         $(top_builddir)/html/hivexml.1.html \
80         $(top_builddir)/html/hivexget.1.html
81
82 $(top_builddir)/html/hivex.3.html: hivex.pod
83         mkdir -p $(top_builddir)/html
84         cd $(top_builddir) && pod2html \
85           --css 'pod.css' \
86           --htmldir html \
87           --outfile html/hivex.3.html \
88           hivex/hivex.pod
89
90 $(top_builddir)/html/hivexml.1.html: hivexml.pod
91         mkdir -p $(top_builddir)/html
92         cd $(top_builddir) && pod2html \
93           --css 'pod.css' \
94           --htmldir html \
95           --outfile html/hivexml.1.html \
96           hivex/hivexml.pod
97
98 $(top_builddir)/html/hivexget.1.html: hivexget.pod
99         mkdir -p $(top_builddir)/html
100         cd $(top_builddir) && pod2html \
101           --css 'pod.css' \
102           --htmldir html \
103           --outfile html/hivexget.1.html \
104           hivex/hivexget.pod