Add myself for packaging copyright and some minor tweaks
[deb_libnfs.git] / rquota / Makefile.am
... / ...
CommitLineData
1noinst_LTLIBRARIES = librquota.la
2
3rquota_SOURCES_GENERATED =
4rquota_HEADERS_GENERATED =
5rquota_GENERATED = $(rquota_SOURCES_GENERATED) $(rquota_HEADERS_GENERATED)
6
7CLEANFILES = $(rquota_GENERATED) rquota-stamp
8
9librquota_la_CPPFLAGS = -I$(abs_top_srcdir)/include \
10 -I$(abs_top_srcdir)/include/nfsc
11librquota_la_SOURCES = \
12 $(rquota_SOURCES_GENERATED) \
13 rquota.c libnfs-raw-rquota.c libnfs-raw-rquota.h
14
15$(rquota_GENERATED) : rquota-stamp
16rquota-stamp : rquota.x
17 rm -f $(rquota_GENERATED)
18 touch rquota-stamp
19
20compile_rpc:
21 cat rquota.x | head -29 >libnfs-raw-rquota.h
22 rpcgen -h rquota.x | sed -e "s/#include <rpc\/rpc.h>//" | sed -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" >> libnfs-raw-rquota.h
23 cat rquota.x | head -29 >libnfs-raw-rquota.c
24 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