# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-EXTRA_DIST = guestmount.pod
+include $(top_srcdir)/subdir-rules.mk
+
+EXTRA_DIST = guestmount.pod test-fuse.sh
if HAVE_FUSE
-I$(top_srcdir)/src -I$(top_builddir)/src \
-I$(srcdir)/../gnulib/lib -I../gnulib/lib \
-DGUESTFS_DEFAULT_PATH='"$(libdir)/guestfs"' \
+ -DLOCALEBASEDIR=\""$(datadir)/locale"\" \
$(FUSE_CFLAGS) \
$(WARN_CFLAGS) $(WERROR_CFLAGS)
$(top_builddir)/src/libguestfs.la \
../gnulib/lib/libgnu.la
+# Documentation.
+
man_MANS = guestmount.1
guestmount.1: guestmount.pod
--outfile html/guestmount.1.html \
fuse/guestmount.pod
+# Tests.
+
+TESTS = test-fuse.sh
+TESTS_ENVIRONMENT = \
+ top_builddir=..
+
endif