5d5ea3096626944441dd314511ee177626ac9db8
[libguestfs.git] / fuse / 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 = fusexmp.c fusexmp_fh.c
19
20 if HAVE_FUSE
21
22 bin_PROGRAMS = guestmount
23
24 guestmount_SOURCES = \
25         dircache.c \
26         dircache.h \
27         guestmount.c
28
29 guestmount_CFLAGS = \
30         -I$(top_srcdir)/src -I$(top_builddir)/src \
31         -I$(srcdir)/../gnulib/lib -I../gnulib/lib \
32         -DGUESTFS_DEFAULT_PATH='"$(libdir)/guestfs"' \
33         $(FUSE_CFLAGS) \
34         $(WARN_CFLAGS) $(WERROR_CFLAGS)
35
36 guestmount_LDADD = \
37         $(FUSE_LIBS) -lulockmgr \
38         $(top_builddir)/src/libguestfs.la \
39         ../gnulib/lib/libgnu.la
40
41 man_MANS = guestmount.1
42
43 guestmount.1: guestmount.pod
44         $(POD2MAN) \
45           --section 1 \
46           -c "Virtualization Support" \
47           --name "guestmount" \
48           --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
49           $< > $@-t; mv $@-t $@
50
51 noinst_DATA = \
52         $(top_builddir)/html/guestmount.1.html
53
54 $(top_builddir)/html/guestmount.1.html: guestmount.pod
55         mkdir -p $(top_builddir)/html
56         cd $(top_builddir) && pod2html \
57           --css 'pod.css' \
58           --htmldir html \
59           --outfile html/guestmount.1.html \
60           fuse/guestmount.pod
61
62 endif