]> git.decadent.org.uk Git - nfs-utils.git/blob - utils/mount/Makefile.am
nfsdcld: add function to remove unreclaimed client records
[nfs-utils.git] / utils / mount / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 # These binaries go in /sbin (not /usr/sbin), and that cannot be
4 # overriden at config time.
5 sbindir = /sbin
6
7 man8_MANS       = mount.nfs.man umount.nfs.man
8 man5_MANS       = nfs.man
9
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
19
20 if MOUNT_CONFIG
21 mount_common += configfile.c
22 man5_MANS += nfsmount.conf.man
23 EXTRA_DIST += nfsmount.conf
24 endif
25
26 mount_nfs_LDADD = ../../support/nfs/libnfs.a \
27                   ../../support/export/libexport.a \
28                   $(LIBTIRPC)
29
30 mount_nfs_SOURCES = $(mount_common)
31
32 if CONFIG_LIBMOUNT
33 mount_nfs_SOURCES += mount_libmount.c
34 mount_nfs_LDADD += $(LIBMOUNT)
35 else
36 mount_nfs_SOURCES += mount.c fstab.c nfsumount.c fstab.h
37
38 endif
39
40 MAINTAINERCLEANFILES = Makefile.in
41
42 install-exec-hook:
43         (cd $(DESTDIR)$(sbindir) && \
44           ln -sf mount.nfs mount.nfs4 && \
45           ln -sf mount.nfs umount.nfs && \
46           ln -sf mount.nfs umount.nfs4 && \
47           chmod 4511 mount.nfs )
48 uninstall-hook:
49         (cd $(DESTDIR)$(sbindir) && \
50             rm -f mount.nfs4 umount.nfs umount.nfs4)
51
52
53 install-man-links:
54         (cd $(DESTDIR)$(man8dir) && \
55           for m in $(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS); do \
56             inst=`echo $$m | sed -e 's/man$$/8/'`; \
57             rm -f $$inst ; \
58           done)
59         (cd $(DESTDIR)$(man5dir) && \
60           for m in $(man5_MANS) $(dist_man5_MANS) $(nodist_man5_MANS); do \
61             inst=`echo $$m | sed -e 's/man$$/5/'`; \
62             rm -f $$inst ; \
63           done)
64
65 uninstall-man-links:
66         (cd $(DESTDIR)$(man8dir) && \
67           for m in $(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS); do \
68             inst=`echo $$m | sed -e 's/man$$/8/'`; \
69             rm -f $$inst ; \
70           done)
71         (cd $(DESTDIR)$(man5dir) && \
72           for m in $(man5_MANS) $(dist_man5_MANS) $(nodist_man5_MANS); do \
73             inst=`echo $$m | sed -e 's/man$$/5/'`; \
74             rm -f $$inst ; \
75           done)
76