1 ## Process this file with automake to produce Makefile.in
3 bin_PROGRAMS = fusermount
4 noinst_PROGRAMS = mount.fuse
6 # we re-use mount_util.c from the library, but do want to keep ourself
7 # as stand-alone as possible. in order to make an out-of-source build
8 # possible, we "generate" the file from its original location by
10 fusermount_SOURCES = fusermount.c mount_util.c
11 fusermount_CPPFLAGS = -I$(top_srcdir)/lib
12 BUILT_SOURCES = mount_util.c
13 mount_util.c: $(top_srcdir)/lib/mount_util.c
14 @cp $(top_srcdir)/lib/mount_util.c .
16 mount_fuse_SOURCES = mount.fuse.c
19 -chmod u+s $(DESTDIR)$(bindir)/fusermount
20 @if test ! -e $(DESTDIR)/dev/fuse; then \
21 $(MKDIR_P) $(DESTDIR)/dev; \
22 echo "mknod $(DESTDIR)/dev/fuse -m 0666 c 10 229 || true"; \
23 mknod $(DESTDIR)/dev/fuse -m 0666 c 10 229 || true; \
26 EXTRA_DIST = udev.rules init_script
28 MOUNT_FUSE_PATH = @MOUNT_FUSE_PATH@
29 UDEV_RULES_PATH = @UDEV_RULES_PATH@
30 INIT_D_PATH = @INIT_D_PATH@
33 $(MKDIR_P) $(DESTDIR)$(MOUNT_FUSE_PATH)
34 $(INSTALL_PROGRAM) $(builddir)/mount.fuse $(DESTDIR)$(MOUNT_FUSE_PATH)/mount.fuse
35 $(MKDIR_P) $(DESTDIR)$(INIT_D_PATH)
36 $(INSTALL_SCRIPT) $(srcdir)/init_script $(DESTDIR)$(INIT_D_PATH)/fuse
37 @if test -x /usr/sbin/update-rc.d; then \
38 echo "/usr/sbin/update-rc.d fuse start 34 S . start 41 0 6 . || true"; \
39 /usr/sbin/update-rc.d fuse start 34 S . start 41 0 6 . || true; \
43 $(MKDIR_P) $(DESTDIR)$(UDEV_RULES_PATH)
44 $(INSTALL_DATA) $(srcdir)/udev.rules $(DESTDIR)$(UDEV_RULES_PATH)/99-fuse.rules
47 rm -f $(DESTDIR)$(MOUNT_FUSE_PATH)/mount.fuse
48 rm -f $(DESTDIR)$(UDEV_RULES_PATH)/99-fuse.rules
49 rm -f $(DESTDIR)$(INIT_D_PATH)/fuse
50 @if test -x /usr/sbin/update-rc.d; then \
51 echo "/usr/sbin/update-rc.d fuse remove || true"; \
52 /usr/sbin/update-rc.d fuse remove || true; \