1 ## Process this file with automake to produce Makefile.in
4 EXTRA_DIST = $(man8_MANS)
11 nfsd_LDADD = ../../support/export/libexport.a \
12 ../../support/nfs/libnfs.a \
13 ../../support/misc/libmisc.a
15 MAINTAINERCLEANFILES = Makefile.in
17 #######################################################################
18 # The following allows the current practice of having
19 # daemons renamed during the install to include RPCPREFIX
21 # This could all be done much easier with program_transform_name
22 # ( program_transform_name = s/^/$(RPCPREFIX)$(KPREFIX)/ )
23 # but that also renames the man pages, which the current
24 # practice does not do.
26 (cd $(DESTDIR)$(sbindir) && \
27 for p in $(sbin_PROGRAMS); do \
28 mv -f $$p$(EXEEXT) $(RPCPREFIX)$(KPREFIX)$$p$(EXEEXT) ;\
31 (cd $(DESTDIR)$(sbindir) && \
32 for p in $(sbin_PROGRAMS); do \
33 rm -f $(RPCPREFIX)$(KPREFIX)$$p$(EXEEXT) ;\
37 # XXX This makes some assumptions about what automake does.
38 # XXX But there is no install-man-hook or install-man-local.
39 install-man: install-man8 install-man-links
40 uninstall-man: uninstall-man8 uninstall-man-links
43 (cd $(DESTDIR)$(man8dir) && \
44 for m in $(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS); do \
45 inst=`echo $$m | sed -e 's/man$$/8/'`; \
46 rm -f $(RPCPREFIX)$$inst ; \
47 $(LN_S) $$inst $(RPCPREFIX)$$inst ; \
51 (cd $(DESTDIR)$(man8dir) && \
52 for m in $(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS); do \
53 inst=`echo $$m | sed -e 's/man$$/8/'`; \
54 rm -f $(RPCPREFIX)$$inst ; \