X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=rquota%2FMakefile.am;h=a82b9fb73e736a565cacc68e15b904b0d0f24fad;hb=af8d37c8b703f3dc22d3ff1c7578b16e84c25050;hp=4f08798339167c48f3dce45f6047c100030c89d0;hpb=6c437065d363dee7f14296e80ae34877e4e1e78c;p=deb_libnfs.git diff --git a/rquota/Makefile.am b/rquota/Makefile.am index 4f08798..a82b9fb 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 $< > libnfs-raw-rquota.h - rpcgen -c $< | 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" -e "s/SVCXPRT /void /g" -e "s/bool_t/uint32_t/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;/" -e "s/bool_t/uint32_t/g" >> libnfs-raw-rquota.c