Add myself for packaging copyright and some minor tweaks
[deb_libnfs.git] / rquota / Makefile.am
CommitLineData
dabf4152
AM
1noinst_LTLIBRARIES = librquota.la
2
ee872606
RRS
3rquota_SOURCES_GENERATED =
4rquota_HEADERS_GENERATED =
dabf4152
AM
5rquota_GENERATED = $(rquota_SOURCES_GENERATED) $(rquota_HEADERS_GENERATED)
6
7CLEANFILES = $(rquota_GENERATED) rquota-stamp
8
ee872606
RRS
9librquota_la_CPPFLAGS = -I$(abs_top_srcdir)/include \
10 -I$(abs_top_srcdir)/include/nfsc
dabf4152
AM
11librquota_la_SOURCES = \
12 $(rquota_SOURCES_GENERATED) \
ee872606 13 rquota.c libnfs-raw-rquota.c libnfs-raw-rquota.h
dabf4152
AM
14
15$(rquota_GENERATED) : rquota-stamp
16rquota-stamp : rquota.x
17 rm -f $(rquota_GENERATED)
dabf4152 18 touch rquota-stamp
f1f22dbf 19
ee872606 20compile_rpc:
f1f22dbf
RRS
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