Merge nfsmount.x and mount.x into mount.x
[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           ln -sf $(sbin_PROGRAMS) mount.nfs4 && \
18           ln -sf $(sbin_PROGRAMS) umount.nfs && \
19           ln -sf $(sbin_PROGRAMS) umount.nfs4)
20 uninstall-hook:
21         (cd $(DESTDIR)$(sbindir) && \
22             rm -f mount.nfs4 umount.nfs umount.nfs4)
23
24
25 install-man-links:
26         (cd $(DESTDIR)$(man8dir) && \
27           for m in $(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS); do \
28             inst=`echo $$m | sed -e 's/man$$/8/'`; \
29             rm -f $$inst ; \
30           done)
31
32 uninstall-man-links:
33         (cd $(DESTDIR)$(man8dir) && \
34           for m in $(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS); do \
35             inst=`echo $$m | sed -e 's/man$$/8/'`; \
36             rm -f $$inst ; \
37           done)
38