1 ## Process this file with automake to produce Makefile.in
3 # These binaries go in /sbin (not /usr/sbin), and that cannot be
4 # overriden at config time.
7 man8_MANS = mount.nfs.man umount.nfs.man
10 sbin_PROGRAMS = mount.nfs
11 EXTRA_DIST = nfsmount.x $(man8_MANS) $(man5_MANS)
12 mount_common = error.c network.c token.c \
13 parse_opt.c parse_dev.c \
14 nfsmount.c nfs4mount.c stropts.c\
15 mount_constants.h error.h network.h token.h \
16 parse_opt.h parse_dev.h \
17 nfs4_mount.h nfs_mount4.h stropts.h version.h \
18 mount_config.h utils.c utils.h
21 mount_common += configfile.c
22 man5_MANS += nfsmount.conf.man
23 EXTRA_DIST += nfsmount.conf
26 mount_nfs_LDADD = ../../support/nfs/libnfs.a \
27 ../../support/export/libexport.a
29 mount_nfs_SOURCES = $(mount_common)
32 mount_nfs_SOURCES += mount_libmount.c
33 mount_nfs_LDADD += $(LIBMOUNT)
35 mount_nfs_SOURCES += mount.c fstab.c nfsumount.c fstab.h
39 MAINTAINERCLEANFILES = Makefile.in
42 (cd $(DESTDIR)$(sbindir) && \
43 ln -sf mount.nfs mount.nfs4 && \
44 ln -sf mount.nfs umount.nfs && \
45 ln -sf mount.nfs umount.nfs4 && \
46 chmod 4511 mount.nfs )
48 (cd $(DESTDIR)$(sbindir) && \
49 rm -f mount.nfs4 umount.nfs umount.nfs4)
53 (cd $(DESTDIR)$(man8dir) && \
54 for m in $(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS); do \
55 inst=`echo $$m | sed -e 's/man$$/8/'`; \
58 (cd $(DESTDIR)$(man5dir) && \
59 for m in $(man5_MANS) $(dist_man5_MANS) $(nodist_man5_MANS); do \
60 inst=`echo $$m | sed -e 's/man$$/5/'`; \
65 (cd $(DESTDIR)$(man8dir) && \
66 for m in $(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS); do \
67 inst=`echo $$m | sed -e 's/man$$/8/'`; \
70 (cd $(DESTDIR)$(man5dir) && \
71 for m in $(man5_MANS) $(dist_man5_MANS) $(nodist_man5_MANS); do \
72 inst=`echo $$m | sed -e 's/man$$/5/'`; \