NFS man page: update nfs(5) with details about IPv6 support
[nfs-utils.git] / utils / idmapd / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 man5_MANS       = idmapd.conf.man
4 man8_MANS       = idmapd.man
5
6 RPCPREFIX       = rpc.
7 KPREFIX         = @kprefix@
8 sbin_PROGRAMS   = idmapd
9
10 EXTRA_DIST = \
11         $(man5_MANS) \
12         $(man8_MANS) \
13         idmapd.conf
14
15 idmapd_SOURCES = \
16         atomicio.c \
17         idmapd.c \
18         strlcat.c \
19         strlcpy.c \
20         \
21         cfg.h \
22         nfs_idmap.h \
23         queue.h
24
25 idmapd_LDADD = -levent -lnfsidmap ../../support/nfs/libnfs.a
26
27 MAINTAINERCLEANFILES = Makefile.in
28
29 #######################################################################
30 # The following allows the current practice of having
31 # daemons renamed during the install to include RPCPREFIX
32 # and the KPREFIX
33 # This could all be done much easier with program_transform_name
34 # ( program_transform_name = s/^/$(RPCPREFIX)$(KPREFIX)/ )
35 # but that also renames the man pages, which the current
36 # practice does not do.
37 install-exec-hook:
38         (cd $(DESTDIR)$(sbindir) && \
39           for p in $(sbin_PROGRAMS); do \
40             mv -f $$p$(EXEEXT) $(RPCPREFIX)$(KPREFIX)$$p$(EXEEXT) ;\
41           done)
42 uninstall-hook:
43         (cd $(DESTDIR)$(sbindir) && \
44           for p in $(sbin_PROGRAMS); do \
45             rm -f $(RPCPREFIX)$(KPREFIX)$$p$(EXEEXT) ;\
46           done)
47
48
49 # XXX This makes some assumptions about what automake does.
50 # XXX But there is no install-man-hook or install-man-local.
51 install-man: install-man5 install-man8 install-man-links
52 uninstall-man: uninstall-man5 uninstall-man8 uninstall-man-links
53
54 install-man-links:
55         (cd $(DESTDIR)$(man8dir) && \
56           for m in $(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS); do \
57             inst=`echo $$m | sed -e 's/man$$/8/'`; \
58             rm -f $(RPCPREFIX)$$inst ; \
59             $(LN_S) $$inst $(RPCPREFIX)$$inst ; \
60           done)
61
62 uninstall-man-links:
63         (cd $(DESTDIR)$(man8dir) && \
64           for m in $(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS); do \
65             inst=`echo $$m | sed -e 's/man$$/8/'`; \
66             rm -f $(RPCPREFIX)$$inst ; \
67           done)
68