resize: Fix typo in man page (thanks avesh@IRC).
[libguestfs.git] / inspector / Makefile.am
1 # libguestfs virt-inspector
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 include $(top_srcdir)/subdir-rules.mk
19
20 EXAMPLE_XML = \
21         example-debian.xml \
22         example-fedora.xml \
23         example-ubuntu.xml \
24         example-windows.xml
25
26 EXTRA_DIST = \
27         run-inspector-locally \
28         virt-inspector.pod
29
30 CLEANFILES = stamp-virt-inspector.pod
31
32 docdir = @docdir@
33 dist_doc_DATA = \
34         virt-inspector.rng \
35         $(EXAMPLE_XML)
36
37 if HAVE_LIBXML2
38
39 bin_PROGRAMS = virt-inspector
40
41 SHARED_SOURCE_FILES = \
42         ../fish/inspect.c \
43         ../fish/keys.c \
44         ../fish/options.h \
45         ../fish/options.c \
46         ../fish/virt.c
47
48 virt_inspector_SOURCES = \
49         $(SHARED_SOURCE_FILES) \
50         virt-inspector.c
51
52 virt_inspector_CFLAGS = \
53         -I$(top_srcdir)/src -I$(top_builddir)/src \
54         -I$(top_srcdir)/fish \
55         -I$(srcdir)/../gnulib/lib -I../gnulib/lib \
56         -DLOCALEBASEDIR=\""$(datadir)/locale"\" \
57         $(LIBXML2_CFLAGS) \
58         $(WARN_CFLAGS) $(WERROR_CFLAGS)
59
60 virt_inspector_LDADD = \
61         $(top_builddir)/src/libguestfs.la \
62         $(LIBXML2_LIBS) \
63         ../gnulib/lib/libgnu.la
64
65 # Manual pages and HTML files for the website.
66 man_MANS = virt-inspector.1
67 noinst_DATA = $(top_builddir)/html/virt-inspector.1.html
68
69 virt-inspector.1 $(top_builddir)/html/virt-inspector.1.html: stamp-virt-inspector.pod
70
71 stamp-virt-inspector.pod: virt-inspector.pod
72         $(top_srcdir)/podwrapper.sh \
73           --man virt-inspector.1 \
74           --html $(top_builddir)/html/virt-inspector.1.html \
75           $<
76         touch $@
77
78 if HAVE_XMLLINT
79
80 TESTS = $(EXAMPLE_XML)
81 TESTS_ENVIRONMENT = $(XMLLINT) --noout --relaxng virt-inspector.rng
82
83 endif
84
85 endif
86
87 # These rules require virt-inspector so there is no good time that we
88 # can run them.  Instead you can run them by hand.
89
90 example-debian.xml:
91         ./run-inspector-locally ../images/debian.img > $@
92 example-fedora.xml:
93         ./run-inspector-locally ../images/fedora.img > $@
94 example-ubuntu.xml:
95         ./run-inspector-locally ../images/ubuntu.img > $@
96 example-windows.xml:
97         ./run-inspector-locally ../images/windows.img | fgrep -v '<uuid>' > $@