diff options
Diffstat (limited to 'utils')
-rw-r--r-- | utils/rquotad/Makefile.am | 7 | ||||
-rw-r--r-- | utils/statd/Makefile.am | 7 |
2 files changed, 10 insertions, 4 deletions
diff --git a/utils/rquotad/Makefile.am b/utils/rquotad/Makefile.am index dcc15ac..4bc036f 100644 --- a/utils/rquotad/Makefile.am +++ b/utils/rquotad/Makefile.am @@ -1,6 +1,5 @@ ## Process this file with automake to produce Makefile.in -RPCGEN = $(top_builddir)/tools/rpcgen/rpcgen GENFILES_XDR = rquota_xdr.c GENFILES_H = rquota.h @@ -27,9 +26,13 @@ rquotad_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS) \ MAINTAINERCLEANFILES = Makefile.in - +if CONFIG_RPCGEN +RPCGEN = $(top_builddir)/tools/rpcgen/rpcgen $(RPCGEN): make -C $(top_srcdir)/tools/rpcgen all +else +RPCGEN = @RPCGEN_PATH@ +endif $(GENFILES_XDR): %_xdr.c: %.x $(RPCGEN) test -f $@ && rm -rf $@ || true diff --git a/utils/statd/Makefile.am b/utils/statd/Makefile.am index efe9356..2f71e29 100644 --- a/utils/statd/Makefile.am +++ b/utils/statd/Makefile.am @@ -2,8 +2,6 @@ man8_MANS = statd.man sm-notify.man -RPCGEN = $(top_builddir)/tools/rpcgen/rpcgen - GENFILES_CLNT = sm_inter_clnt.c GENFILES_SVC = sm_inter_svc.c GENFILES_XDR = sm_inter_xdr.c @@ -29,8 +27,13 @@ sm_notify_LDADD = $(LIBNSL) EXTRA_DIST = sim_sm_inter.x sm_inter.x $(man8_MANS) COPYRIGHT simulate.c +if CONFIG_RPCGEN +RPCGEN = $(top_builddir)/tools/rpcgen/rpcgen $(RPCGEN): make -C ../../tools/rpcgen all +else +RPCGEN = @RPCGEN_PATH@ +endif $(GENFILES_CLNT): %_clnt.c: %.x $(RPCGEN) test -f $@ && rm -rf $@ || true |