X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fmount%2FMakefile.am;h=5810936893985c6274f2e09fa1da0fc42de842ee;hp=500c4295729772ac80ee7fb785850db87ff3c519;hb=fb06ed9fc1fa11a95544fb2d89adb6c51ef5d946;hpb=8ab0b89f09dff407101a6f22265873a283e73901 diff --git a/utils/mount/Makefile.am b/utils/mount/Makefile.am index 500c429..5810936 100644 --- a/utils/mount/Makefile.am +++ b/utils/mount/Makefile.am @@ -1,18 +1,41 @@ ## Process this file with automake to produce Makefile.in # These binaries go in /sbin (not /usr/sbin), and that cannot be -# overriden at config time. +# overridden at config time. sbindir = /sbin man8_MANS = mount.nfs.man umount.nfs.man +man5_MANS = nfs.man sbin_PROGRAMS = mount.nfs -EXTRA_DIST = nfsmount.x $(man8_MANS) -mount_nfs_SOURCES = mount.c nfsmount.c nfs4mount.c nfsumount.c \ - mount_constants.h nfs4_mount.h nfs_mount4.h +EXTRA_DIST = nfsmount.x $(man8_MANS) $(man5_MANS) +mount_common = error.c network.c token.c \ + parse_opt.c parse_dev.c \ + nfsmount.c nfs4mount.c stropts.c\ + mount_constants.h error.h network.h token.h \ + parse_opt.h parse_dev.h \ + nfs4_mount.h nfs_mount4.h stropts.h version.h \ + mount_config.h utils.c utils.h + +if MOUNT_CONFIG +mount_common += configfile.c +man5_MANS += nfsmount.conf.man +EXTRA_DIST += nfsmount.conf +endif mount_nfs_LDADD = ../../support/nfs/libnfs.a \ - ../../support/export/libexport.a + ../../support/export/libexport.a \ + $(LIBTIRPC) + +mount_nfs_SOURCES = $(mount_common) + +if CONFIG_LIBMOUNT +mount_nfs_SOURCES += mount_libmount.c +mount_nfs_LDADD += $(LIBMOUNT) +else +mount_nfs_SOURCES += mount.c fstab.c nfsumount.c fstab.h + +endif MAINTAINERCLEANFILES = Makefile.in @@ -20,7 +43,8 @@ install-exec-hook: (cd $(DESTDIR)$(sbindir) && \ ln -sf mount.nfs mount.nfs4 && \ ln -sf mount.nfs umount.nfs && \ - ln -sf mount.nfs umount.nfs4) + ln -sf mount.nfs umount.nfs4 && \ + chmod 4511 mount.nfs ) uninstall-hook: (cd $(DESTDIR)$(sbindir) && \ rm -f mount.nfs4 umount.nfs umount.nfs4) @@ -32,6 +56,11 @@ install-man-links: inst=`echo $$m | sed -e 's/man$$/8/'`; \ rm -f $$inst ; \ done) + (cd $(DESTDIR)$(man5dir) && \ + for m in $(man5_MANS) $(dist_man5_MANS) $(nodist_man5_MANS); do \ + inst=`echo $$m | sed -e 's/man$$/5/'`; \ + rm -f $$inst ; \ + done) uninstall-man-links: (cd $(DESTDIR)$(man8dir) && \ @@ -39,4 +68,9 @@ uninstall-man-links: inst=`echo $$m | sed -e 's/man$$/8/'`; \ rm -f $$inst ; \ done) + (cd $(DESTDIR)$(man5dir) && \ + for m in $(man5_MANS) $(dist_man5_MANS) $(nodist_man5_MANS); do \ + inst=`echo $$m | sed -e 's/man$$/5/'`; \ + rm -f $$inst ; \ + done)