Moved the kernel version-ing code into a new version.h
[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 parse_opt.c \
13                     nfsmount.c nfs4mount.c stropts.c\
14                     nfsumount.c \
15                     mount_constants.h error.h network.h fstab.h token.h parse_opt.h \
16                     nfs4_mount.h nfs_mount4.h stropts.h version.h
17
18 mount_nfs_LDADD = ../../support/nfs/libnfs.a \
19                   ../../support/export/libexport.a
20
21 MAINTAINERCLEANFILES = Makefile.in
22
23 install-exec-hook:
24         (cd $(DESTDIR)$(sbindir) && \
25           ln -sf mount.nfs mount.nfs4 && \
26           ln -sf mount.nfs umount.nfs && \
27           ln -sf mount.nfs umount.nfs4 && \
28           chmod 4511 mount.nfs )
29 uninstall-hook:
30         (cd $(DESTDIR)$(sbindir) && \
31             rm -f mount.nfs4 umount.nfs umount.nfs4)
32
33
34 install-man-links:
35         (cd $(DESTDIR)$(man8dir) && \
36           for m in $(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS); do \
37             inst=`echo $$m | sed -e 's/man$$/8/'`; \
38             rm -f $$inst ; \
39           done)
40         (cd $(DESTDIR)$(man5dir) && \
41           for m in $(man5_MANS) $(dist_man5_MANS) $(nodist_man5_MANS); do \
42             inst=`echo $$m | sed -e 's/man$$/5/'`; \
43             rm -f $$inst ; \
44           done)
45
46 uninstall-man-links:
47         (cd $(DESTDIR)$(man8dir) && \
48           for m in $(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS); do \
49             inst=`echo $$m | sed -e 's/man$$/8/'`; \
50             rm -f $$inst ; \
51           done)
52         (cd $(DESTDIR)$(man5dir) && \
53           for m in $(man5_MANS) $(dist_man5_MANS) $(nodist_man5_MANS); do \
54             inst=`echo $$m | sed -e 's/man$$/5/'`; \
55             rm -f $$inst ; \
56           done)
57