]> git.decadent.org.uk Git - nfs-utils.git/blob - utils/rquotad/Makefile.am
Remove some files that old, unused, unneeded.
[nfs-utils.git] / utils / rquotad / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 man8_MANS       = rquotad.man
4
5 RPCPREFIX       = rpc.
6 KPREFIX         = @kprefix@
7 sbin_PROGRAMS   = rquotad
8
9 EXTRA_DIST = rquota.x $(man8_MANS) NEW README.okir
10
11 rquotad_SOURCES = rquota_server.c rquota_svc.c rquota_xdr.c quotactl.c \
12                   hasquota.c mntent.h rquota.h
13 rquotad_LDADD = ../../support/export/libexport.a \
14                 ../../support/nfs/libnfs.a \
15                 ../../support/misc/libmisc.a \
16                 $(LIBBSD) $(LIBWRAP) $(LIBNSL)
17 rquotad_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS) \
18                    -I$(top_srcdir)/support/export
19
20 MAINTAINERCLEANFILES = Makefile.in
21
22 #######################################################################
23 # The following allows the current practice of having
24 # daemons renamed during the install to include RPCPREFIX
25 # and the KPREFIX
26 # This could all be done much easier with program_transform_name
27 # ( program_transform_name = s/^/$(RPCPREFIX)$(KPREFIX)/ )
28 # but that also renames the man pages, which the current
29 # practice does not do.
30 install-exec-hook:
31         (cd $(DESTDIR)$(sbindir) && \
32           for p in $(sbin_PROGRAMS); do \
33             mv -f $$p$(EXEEXT) $(RPCPREFIX)$(KPREFIX)$$p$(EXEEXT) ;\
34           done)
35 uninstall-hook:
36         (cd $(DESTDIR)$(sbindir) && \
37           for p in $(sbin_PROGRAMS); do \
38             rm -f $(RPCPREFIX)$(KPREFIX)$$p$(EXEEXT) ;\
39           done)
40
41
42 # XXX This makes some assumptions about what automake does.
43 # XXX But there is no install-man-hook or install-man-local.
44 install-man: install-man8 install-man-links
45 uninstall-man: uninstall-man8 uninstall-man-links
46
47 install-man-links:
48         (cd $(DESTDIR)$(man8dir) && \
49           for m in $(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS); do \
50             inst=`echo $$m | sed -e 's/man$$/8/'`; \
51             rm -f $(RPCPREFIX)$$inst ; \
52             $(LN_S) $$inst $(RPCPREFIX)$$inst ; \
53           done)
54
55 uninstall-man-links:
56         (cd $(DESTDIR)$(man8dir) && \
57           for m in $(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS); do \
58             inst=`echo $$m | sed -e 's/man$$/8/'`; \
59             rm -f $(RPCPREFIX)$$inst ; \
60           done)
61