Fix out-of-tree (VPATH) builds
[deb_libnfs.git] / rquota / Makefile.am
... / ...
CommitLineData
1noinst_LTLIBRARIES = librquota.la
2
3rquota_SOURCES_GENERATED = libnfs-raw-rquota.c
4rquota_HEADERS_GENERATED = libnfs-raw-rquota.h
5rquota_GENERATED = $(rquota_SOURCES_GENERATED) $(rquota_HEADERS_GENERATED)
6
7CLEANFILES = $(rquota_GENERATED) rquota-stamp
8
9librquota_la_CPPFLAGS = -I$(abs_top_srcdir)/include
10librquota_la_SOURCES = \
11 $(rquota_SOURCES_GENERATED) \
12 rquota.c
13
14$(rquota_GENERATED) : rquota-stamp
15rquota-stamp : rquota.x
16 rm -f $(rquota_GENERATED)
17 rpcgen -h @RPCGENFLAGS@ $< > libnfs-raw-rquota.h
18 rpcgen -c @RPCGENFLAGS@ $< | sed -e "s/#include \".*rquota.h\"/#include \"libnfs-raw-rquota.h\"/" > libnfs-raw-rquota.c
19 touch rquota-stamp
20