]> git.decadent.org.uk Git - nfs-utils.git/blob - utils/mount/Makefile.am
Support routines used to read sections from the configuration file
[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_nfs_SOURCES = mount.c error.c network.c fstab.c token.c \
13                     parse_opt.c parse_dev.c \
14                     nfsmount.c nfs4mount.c stropts.c\
15                     nfsumount.c \
16                     mount_constants.h error.h network.h fstab.h token.h \
17                     parse_opt.h parse_dev.h \
18                     nfs4_mount.h nfs_mount4.h stropts.h version.h
19
20 if MOUNT_CONFIG
21 mount_nfs_SOURCES += configfile.c
22 endif
23
24 mount_nfs_LDADD = ../../support/nfs/libnfs.a \
25                   ../../support/export/libexport.a
26
27 MAINTAINERCLEANFILES = Makefile.in
28
29 install-exec-hook:
30         (cd $(DESTDIR)$(sbindir) && \
31           ln -sf mount.nfs mount.nfs4 && \
32           ln -sf mount.nfs umount.nfs && \
33           ln -sf mount.nfs umount.nfs4 && \
34           chmod 4511 mount.nfs )
35 uninstall-hook:
36         (cd $(DESTDIR)$(sbindir) && \
37             rm -f mount.nfs4 umount.nfs umount.nfs4)
38
39
40 install-man-links:
41         (cd $(DESTDIR)$(man8dir) && \
42           for m in $(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS); do \
43             inst=`echo $$m | sed -e 's/man$$/8/'`; \
44             rm -f $$inst ; \
45           done)
46         (cd $(DESTDIR)$(man5dir) && \
47           for m in $(man5_MANS) $(dist_man5_MANS) $(nodist_man5_MANS); do \
48             inst=`echo $$m | sed -e 's/man$$/5/'`; \
49             rm -f $$inst ; \
50           done)
51
52 uninstall-man-links:
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/'`; \
56             rm -f $$inst ; \
57           done)
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/'`; \
61             rm -f $$inst ; \
62           done)
63