Integrate static packaing into the CVS HEAD; make it even default.
[captive.git] / src / client / fuse / Makefile.am
index b0e0b6c..d551212 100644 (file)
@@ -26,15 +26,94 @@ mount_captive_SOURCES= \
                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 \
+               gnomevfsfileinfo.c \
+               gnomevfsfileinfo.h \
                main.c \
                main.h
 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) $< $@
+