8d69c55e0cacff765ed7572fd6e5ad0e61e4f299
[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 if HAVE_RUBY
38 SUBDIRS += ruby
39 endif
40
41 EXTRA_DIST = hivex.pc hivex.pc.in README LICENSE
42
43 # Generate the ChangeLog automatically from the gitlog.
44 dist-hook:
45         $(top_srcdir)/build-aux/gitlog-to-changelog > ChangeLog
46         cp ChangeLog $(distdir)/ChangeLog
47
48 # Pkgconfig.
49 pkgconfigdir = $(libdir)/pkgconfig
50 pkgconfig_DATA = hivex.pc
51
52 # Maintainer website update.
53 HTMLFILES = \
54         html/hivex.3.html \
55         html/hivexget.1.html \
56         html/hivexml.1.html \
57         html/hivexregedit.1.html \
58         html/hivexsh.1.html
59
60 WEBSITEDIR = $(HOME)/d/redhat/websites/libguestfs
61
62 website: $(HTMLFILES)
63         cp $(HTMLFILES) $(WEBSITEDIR)
64
65 CLEANFILES = $(HTMLFILES) pod2*.tmp