X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Frquotad%2FMakefile.am;h=4bc036fca080d398e34ebb3863c353f58357c84f;hp=08837939618cea13baa8b065155b5417dc95cf44;hb=453ac684258684e0e8413f4d9ef9822e753d9dbb;hpb=66f9d8251c92124e46a209c47e5c0f7d3a0c4e6e diff --git a/utils/rquotad/Makefile.am b/utils/rquotad/Makefile.am index 0883793..4bc036f 100644 --- a/utils/rquotad/Makefile.am +++ b/utils/rquotad/Makefile.am @@ -1,10 +1,11 @@ ## Process this file with automake to produce Makefile.in -RPCGEN = $(top_builddir)/tools/rpcgen/rpcgen GENFILES_XDR = rquota_xdr.c GENFILES_H = rquota.h +BUILT_SOURCES = $(GENFILES_H) + GENFILES = $(GENFILES_XDR) $(GENFILES_H) man8_MANS = rquotad.man @@ -25,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 @@ -38,6 +43,8 @@ $(GENFILES_H): %.h: %.x $(RPCGEN) test -f $@ && rm -rf $@ || true $(RPCGEN) -h -o $@ $< +CLEANFILES = $(GENFILES) + ####################################################################### # The following allows the current practice of having # daemons renamed during the install to include RPCPREFIX