Initial original import from: fuse-2.4.2-2.fc4
[captive.git] / src / client / fuse / Makefile.am
index 837908e..d551212 100644 (file)
@@ -40,6 +40,24 @@ mount_captive_SOURCES= \
                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 \
                gnomevfsfileinfo.c \
@@ -50,7 +68,52 @@ mount_captive_CFLAGS=                   $(GNOME_VFS_CFLAGS) $(FUSE_CFLAGS)
 mount_captive_LDADD =$(captive_library) $(GNOME_VFS_LIBS)   $(FUSE_LIBS)   $(INTLLIBS)
 mount_captive_LDFLAGS=$(READLINE_LDFLAGS)
 
-if ENABLE_BUG_REPLAY
+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
+
+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
+
+else
+install-exec-hook:
+       @true
+
 endif
-bin_PROGRAMS+=$(mount_captive_cond)
+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) $< $@
+