maint: remove spaces before TAB
[hivex.git] / Makefile.am
1 # hivex
2 # Copyright (C) 2009-2011 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 ACLOCAL_AMFLAGS = -I m4
19
20 # Work around broken libtool.
21 export to_tool_file_cmd=func_convert_file_noop
22
23 SUBDIRS = gnulib/lib generator lib images gnulib/tests sh xml po
24
25 if HAVE_OCAML
26 SUBDIRS += ocaml
27 endif
28
29 if HAVE_PERL
30 SUBDIRS += perl regedit
31 endif
32
33 if HAVE_PYTHON
34 SUBDIRS += python
35 endif
36
37 EXTRA_DIST = hivex.pc hivex.pc.in README LICENSE
38
39 # Generate the ChangeLog automatically from the gitlog.
40 dist-hook:
41         $(top_srcdir)/build-aux/gitlog-to-changelog > ChangeLog
42         cp ChangeLog $(distdir)/ChangeLog
43
44 # Update the list of translatable files in po/POTFILES.in.
45 all-local:
46         cd $(srcdir); \
47         find $(DIST_SUBDIRS) \
48             -name '*.c' -o -name '*.pl' -o -name '*.pm' | \
49         grep -v '^gnulib/' | \
50         grep -v 'perl/blib/' | \
51         LC_ALL=C sort | \
52         sed 's,^\./,,' > po/POTFILES.in
53
54 # Pkgconfig.
55 pkgconfigdir = $(libdir)/pkgconfig
56 pkgconfig_DATA = hivex.pc
57
58 # Maintainer website update.
59 HTMLFILES = \
60         html/hivex.3.html \
61         html/hivexget.1.html \
62         html/hivexml.1.html \
63         html/hivexregedit.1.html \
64         html/hivexsh.1.html
65
66 WEBSITEDIR = $(HOME)/d/redhat/websites/libguestfs
67
68 website: $(HTMLFILES)
69         cp $(HTMLFILES) $(WEBSITEDIR)
70
71 CLEANFILES = $(HTMLFILES) pod2*.tmp