X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=support%2Fexport%2FMakefile.am;fp=support%2Fexport%2FMakefile.am;h=1ea15397c3a99ef76bb3dc906f3fa48ba9342d91;hp=7a6a441c6c2f508135609a1b60e583c557dcf182;hb=453ac684258684e0e8413f4d9ef9822e753d9dbb;hpb=390e67de5d9fe919d1894359536f0c5527fa2331 diff --git a/support/export/Makefile.am b/support/export/Makefile.am index 7a6a441..1ea1539 100644 --- a/support/export/Makefile.am +++ b/support/export/Makefile.am @@ -1,6 +1,5 @@ ## Process this file with automake to produce Makefile.in -RPCGEN = $(top_builddir)/tools/rpcgen/rpcgen GENFILES_CLNT = mount_clnt.c GENFILES_XDR = mount_xdr.c @@ -22,8 +21,13 @@ dist-hook: rm ${distdir}/$$f; \ done +if CONFIG_RPCGEN +RPCGEN = $(top_builddir)/tools/rpcgen/rpcgen $(RPCGEN): make -C $(top_srcdir)/tools/rpcgen all +else +RPCGEN = @RPCGEN_PATH@ +endif $(GENFILES_CLNT): %_clnt.c: %.x $(RPCGEN) test -f $@ && rm -rf $@ || true