X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=rquota%2FMakefile.am;h=c502fd57aa2e3954f7e33f2f49c3210853e03b8e;hb=ef1f869943d9d6a19d4b2c21059fc9c0b2632a09;hp=da22cea0e4b46e7211e0ac65ba3fc85553c10bfb;hpb=752d8ed28a91219de086635d73e0ba45991abb1e;p=deb_libnfs.git diff --git a/rquota/Makefile.am b/rquota/Makefile.am index da22cea..c502fd5 100644 --- a/rquota/Makefile.am +++ b/rquota/Makefile.am @@ -1,20 +1,24 @@ noinst_LTLIBRARIES = librquota.la -rquota_SOURCES_GENERATED = libnfs-raw-rquota.c -rquota_HEADERS_GENERATED = libnfs-raw-rquota.h +rquota_SOURCES_GENERATED = +rquota_HEADERS_GENERATED = rquota_GENERATED = $(rquota_SOURCES_GENERATED) $(rquota_HEADERS_GENERATED) CLEANFILES = $(rquota_GENERATED) rquota-stamp -librquota_la_CPPFLAGS = -I$(abs_top_srcdir)/include +librquota_la_CPPFLAGS = -I$(abs_top_srcdir)/include \ + -I$(abs_top_srcdir)/include/nfsc librquota_la_SOURCES = \ $(rquota_SOURCES_GENERATED) \ - rquota.c + rquota.c libnfs-raw-rquota.c libnfs-raw-rquota.h $(rquota_GENERATED) : rquota-stamp rquota-stamp : rquota.x rm -f $(rquota_GENERATED) - rpcgen -h @RPCGENFLAGS@ $< > libnfs-raw-rquota.h - rpcgen -c @RPCGENFLAGS@ $< | sed -e "s/#include \".*rquota.h\"/#include \"libnfs-raw-rquota.h\"/" > libnfs-raw-rquota.c touch rquota-stamp - + +compile_rpc: + cat rquota.x | head -29 >libnfs-raw-rquota.h + rpcgen -h rquota.x | sed -e "s/#include //" | sed -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" -e "s/ CLIENT / void /g" >> libnfs-raw-rquota.h + cat rquota.x | head -29 >libnfs-raw-rquota.c + rpcgen -c rquota.x | sed -e "s/#include \".*rquota.h\"/#include \"libnfs-xdr.h\"\n#include \"libnfs-raw-rquota.h\"/" -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" -e "s/register int32_t \*buf;/register int32_t *buf;\n buf = NULL;/" >> libnfs-raw-rquota.c