diff options
Diffstat (limited to 'support')
-rw-r--r-- | support/export/Makefile.am | 6 |
1 files changed, 5 insertions, 1 deletions
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 |