2 # automake source for the fuse module for fuse Makefile
3 # Copyright (C) 2005 Jan Kratochvil <project-captive@jankratochvil.net>
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; exactly version 2 of June 1991 is required
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.
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 include $(top_srcdir)/Makefile-head.am
20 include $(top_srcdir)/src/libcaptive/Makefile-libcaptive.am
22 mount_captive_SOURCES= \
67 mount_captive_CFLAGS= $(GNOME_VFS_CFLAGS) $(FUSE_CFLAGS)
68 mount_captive_LDADD =$(captive_library) $(GNOME_VFS_LIBS) $(FUSE_LIBS) $(INTLLIBS)
69 mount_captive_LDFLAGS=$(READLINE_LDFLAGS)
71 mount_captive_CFLAGS+=-DLIBEXECDIR="$(libexecdir)"
72 mount_captive_CFLAGS+=-DVARLIBCAPTIVEDIR="$(localstatedir)/lib/$(PACKAGE)"
76 mount_captive_cond=mount.captive
77 initd_SCRIPTS_cond=captive
80 $(mkinstalldirs) $(DESTDIR)$(enable_sbin_mountdir)
82 enable_sbin_mount_fs="$(enable_sbin_mount_fs)"; \
83 for fs in $$enable_sbin_mount_fs; do \
84 if test $$fs != no; then \
85 $(RM) $(DESTDIR)$(enable_sbin_mountdir)/mount.captive-$$fs; \
86 $(LN_S) mount.captive $(DESTDIR)$(enable_sbin_mountdir)/mount.captive-$$fs; \
89 if test `id -u` -eq 0 -a -z "$(DESTDIR)";then \
90 if grep -q '^fuse:' /etc/group;then true;else \
91 echo "ERROR: Add 'fuse' to your '/etc/group'; see groupadd(8)"; \
106 enable_sbin_mount_PROGRAMS=$(mount_captive_cond)
108 EXTRA_DIST+=mount.captive.pod.pl.in
109 CLEANFILES+=mount.captive.pod mount.captive.1
114 mount_captive_man_cond=mount.captive.8
118 man_MANS=$(mount_captive_man_cond)
120 initd_SCRIPTS=$(initd_SCRIPTS_cond)
121 EXTRA_DIST+=captive.init
123 captive: captive.init
126 captive_fusermount_SOURCES= \
128 captive_fusermount_CFLAGS=
129 captive_fusermount_LDADD =$(captive_library)
130 libexec_PROGRAMS=$(libexec_PROGRAMS_cond)
131 libexecPROGRAMS_INSTALL=${INSTALL} -o root -g fuse -m 4754
135 libexec_PROGRAMS_cond=captive-fusermount