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