1 ## Process this file with automake to produce Makefile.in
10 man8_MANS = svcgssd.man
14 sbin_PROGRAMS = svcgssd
16 EXTRA_DIST = $(man8_MANS)
29 ../../support/nfs/libnfs.a \
30 -lrpcsecgss -lgssapi -lnfsidmap \
33 svcgssd_LDFLAGS = -Wl,-rpath=$(KRBDIR)/lib
35 svcgssd_CPPFLAGS = -I$(top_srcdir)/support/rpc/include \
36 $(AM_CPPFLAGS) $(CPPFLAGS) \
37 -I$(top_srcdir)/utils/gssd
39 svcgssd_CFLAGS = $(AM_CFLAGS) $(CFLAGS) \
42 BUILT_SOURCES = $(LINKSRCS)
44 MAINTAINERCLEANFILES = Makefile.in
46 CLEANFILES = $(LINKSRCS)
48 LINKDIR = $(top_srcdir)/utils/gssd
51 ln -sf $(LINKDIR)/$@ $@
53 #######################################################################
54 # The following allows the current practice of having
55 # daemons renamed during the install to include RPCPREFIX
57 # This could all be done much easier with program_transform_name
58 # ( program_transform_name = s/^/$(RPCPREFIX)$(KPREFIX)/ )
59 # but that also renames the man pages, which the current
60 # practice does not do.
61 #######################################################################
63 (cd $(DESTDIR)$(sbindir) && \
64 for p in $(sbin_PROGRAMS); do \
65 mv -f $$p$(EXEEXT) $(RPCPREFIX)$(KPREFIX)$$p$(EXEEXT) ;\
68 (cd $(DESTDIR)$(sbindir) && \
69 for p in $(sbin_PROGRAMS); do \
70 rm -f $(RPCPREFIX)$(KPREFIX)$$p$(EXEEXT) ;\
74 # XXX This makes some assumptions about what automake does.
75 # XXX But there is no install-man-hook or install-man-local.
76 install-man: install-man8 install-man-links
77 uninstall-man: uninstall-man8 uninstall-man-links
80 (cd $(DESTDIR)$(man8dir) && \
81 for m in $(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS); do \
82 inst=`echo $$m | sed -e 's/man$$/8/'`; \
83 rm -f $(RPCPREFIX)$$inst ; \
84 $(LN_S) $$inst $(RPCPREFIX)$$inst ; \
88 (cd $(DESTDIR)$(man8dir) && \
89 for m in $(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS); do \
90 inst=`echo $$m | sed -e 's/man$$/8/'`; \
91 rm -f $(RPCPREFIX)$$inst ; \