# $Id$ # automake source for the fuse module for fuse Makefile # Copyright (C) 2005 Jan Kratochvil # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; exactly version 2 of June 1991 is required # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA include $(top_srcdir)/Makefile-head.am include $(top_srcdir)/src/libcaptive/Makefile-libcaptive.am mount_captive_SOURCES= \ op_statfs.c \ op_statfs.h \ op_fsync.c \ op_fsync.h \ op_fsyncdir.c \ op_fsyncdir.h \ op_opendir.c \ op_opendir.h \ op_readdir.c \ op_readdir.h \ op_releasedir.c \ op_releasedir.h \ op_open.c \ op_open.h \ op_read.c \ op_read.h \ op_release.c \ op_release.h \ op_getattr.c \ op_getattr.h \ op_mknod.c \ op_mknod.h \ op_unlink.c \ op_unlink.h \ op_mkdir.c \ op_mkdir.h \ op_rmdir.c \ op_rmdir.h \ op_chmod.c \ op_chmod.h \ op_truncate.c \ op_truncate.h \ op_write.c \ op_write.h \ op_rename.c \ op_rename.h \ op_utime.c \ op_utime.h \ gnomevfsresult.c \ gnomevfsresult.h \ capfuse_captive_file_info_object.c \ capfuse_captive_file_info_object.h \ main.c \ main.h \ utf8.c \ utf8.h mount_captive_CFLAGS= $(GNOME_VFS_CFLAGS) $(LIBXML_CFLAGS) $(FUSE_CFLAGS) mount_captive_LDADD =$(captive_library) $(GNOME_VFS_LIBS) $(LIBXML_LIBS) $(FUSE_LIBS) $(INTLLIBS) mount_captive_LDFLAGS=$(READLINE_LDFLAGS) mount_captive_CFLAGS+=-DLIBEXECDIR="$(libexecdir)" mount_captive_CFLAGS+=-DVARLIBCAPTIVEDIR="$(localstatedir)/lib/$(PACKAGE)" if ENABLE_FUSE if ENABLE_SBIN_MOUNT mount_captive_cond=mount.captive initd_SCRIPTS_cond=captive if ENABLE_STANDALONE libexec_PROGRAMS_cond=captive-fusermount install-exec-hook-captive-fusermount: chown root.fuse $(DESTDIR)/$(libexecdir)/captive-fusermount chmod 4754 $(DESTDIR)/$(libexecdir)/captive-fusermount if grep -q '^fuse:' /etc/group;then true;else \ echo "ERROR: Add 'fuse' to your '/etc/group'; see groupadd(8)"; \ exit 1; \ fi; else install-exec-hook-captive-fusermount: @true endif # Do not: libexecPROGRAMS_INSTALL=${INSTALL} -o root -g fuse -m 4754 # as it works only on Fedora Core based systems, at least SuSE 10.0 correctly fails. # https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=176708 install-exec-hook: $(mkinstalldirs) $(DESTDIR)$(enable_sbin_mountdir) IFS=:; \ enable_sbin_mount_fs="$(enable_sbin_mount_fs)"; \ for fs in $$enable_sbin_mount_fs; do \ if test $$fs != no; then \ $(RM) $(DESTDIR)$(enable_sbin_mountdir)/mount.captive-$$fs; \ $(LN_S) mount.captive $(DESTDIR)$(enable_sbin_mountdir)/mount.captive-$$fs; \ fi; \ done if test `id -u` -eq 0 -a -z "$(DESTDIR)";then \ $(MAKE) $(AM_MAKEFLAGS) install-exec-hook-captive-fusermount; \ fi else install-exec-hook: @true endif else install-exec-hook: @true endif enable_sbin_mount_PROGRAMS=$(mount_captive_cond) EXTRA_DIST+=mount.captive.pod.pl.in CLEANFILES+=mount.captive.pod mount.captive.1 if ENABLE_MAN_PAGES if ENABLE_FUSE if ENABLE_SBIN_MOUNT mount_captive_man_cond=mount.captive.8 endif endif endif man_MANS=$(mount_captive_man_cond) initd_SCRIPTS=$(initd_SCRIPTS_cond) EXTRA_DIST+=captive.init CLEANFILES+=captive captive: captive.init $(LN_S) $< $@ captive_fusermount_SOURCES= \ fusermount.c captive_fusermount_CFLAGS= captive_fusermount_LDADD =$(captive_library) libexec_PROGRAMS=$(libexec_PROGRAMS_cond)