X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=utils%2Frquotad%2FMakefile.am;h=dcc15ac9c4aad1c85d140b486ab8136cabb658c6;hb=33cfd406a19a38bc10a977109bd2baaed1228a79;hp=8e3e634ab8ecb62c07a6d4a152847f295b57b2a5;hpb=9f5b40b7a68fe0a2648565ecbd4b08bf60287130;p=nfs-utils.git diff --git a/utils/rquotad/Makefile.am b/utils/rquotad/Makefile.am index 8e3e634..dcc15ac 100644 --- a/utils/rquotad/Makefile.am +++ b/utils/rquotad/Makefile.am @@ -1,5 +1,13 @@ ## 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 RPCPREFIX = rpc. @@ -19,6 +27,21 @@ rquotad_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS) \ MAINTAINERCLEANFILES = Makefile.in + +$(RPCGEN): + make -C $(top_srcdir)/tools/rpcgen all + +$(GENFILES_XDR): %_xdr.c: %.x $(RPCGEN) + test -f $@ && rm -rf $@ || true + $(RPCGEN) -c -o $@ $< + + +$(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