]> git.decadent.org.uk Git - nfs-utils.git/blob - utils/mount/Makefile.am
Imported Debian patch 1.0.8+1.0.9pre1-3
[nfs-utils.git] / utils / mount / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 man8_MANS       = mount.nfs.man umount.nfs.man
4
5 sbin_PROGRAMS   = mount.nfs
6 EXTRA_DIST = nfsmount.x $(man8_MANS)
7 mount_nfs_SOURCES = mount.c nfsmount.c nfs4mount.c nfsumount.c \
8                   mount_constants.h nfs4_mount.h nfs_mount4.h
9
10 mount_nfs_LDADD = ../../support/nfs/libnfs.a \
11                   ../../support/export/libexport.a
12
13 MAINTAINERCLEANFILES = Makefile.in
14
15 install-exec-hook:
16         (cd $(DESTDIR)$(sbindir) && \
17           chmod +s $(sbin_PROGRAMS) && \
18           ln -sf $(sbin_PROGRAMS) mount.nfs4 && \
19           ln -sf $(sbin_PROGRAMS) umount.nfs && \
20           ln -sf $(sbin_PROGRAMS) umount.nfs4)
21 uninstall-hook:
22         (cd $(DESTDIR)$(sbindir) && \
23             rm -f mount.nfs4 umount.nfs umount.nfs4)
24
25
26 install-man-links:
27         (cd $(DESTDIR)$(man8dir) && \
28           for m in $(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS); do \
29             inst=`echo $$m | sed -e 's/man$$/8/'`; \
30             rm -f $$inst ; \
31           done)
32
33 uninstall-man-links:
34         (cd $(DESTDIR)$(man8dir) && \
35           for m in $(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS); do \
36             inst=`echo $$m | sed -e 's/man$$/8/'`; \
37             rm -f $$inst ; \
38           done)
39