From acbd82bd456316a32f61df67fc41bbff681119c7 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Wed, 15 Jul 2009 12:13:52 -0400 Subject: [PATCH] quota-fs: Building fixes. --HG-- branch : HEAD --- src/plugins/quota/Makefile.am | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/plugins/quota/Makefile.am b/src/plugins/quota/Makefile.am index 6e9db6a4a8..16abf57d2c 100644 --- a/src/plugins/quota/Makefile.am +++ b/src/plugins/quota/Makefile.am @@ -36,13 +36,12 @@ RQUOTA_XDR = rquota_xdr.c #RQUOTA_X = /usr/include/rpcsvc/rquota.x RQUOTA_X = $(srcdir)/rquota.x rquota_xdr.c: Makefile $(RQUOTA_X) - if [ "$(builddir)" = "" ]; then dir="."; else dir="$(builddir)"; fi; \ - if [ "$(srcdir)" != "$$dir" ]; then \ - cp $(RQUOTA_X) $$dir; \ + if [ "$(top_srcdir)" != "$(top_builddir)" ]; then \ + cp $(RQUOTA_X) $(top_builddir)/src/plugins/quota/; \ fi; \ (echo '#include "lib.h"'; \ echo '#include '; \ - $(RPCGEN) -c $$dir/rquota.x | \ + $(RPCGEN) -c $(top_builddir)/src/plugins/quota/rquota.x | \ sed -e 's/IXDR_PUT/(void)IXDR_PUT/g' \ -e 's,/usr/include/rpcsvc/rquota.h,rquota.h,' \ -e 's/int32_t \*buf/int32_t *buf ATTR_UNUSED/' \ @@ -66,4 +65,7 @@ EXTRA_DIST = rquota.x DISTFILES = $(DIST_COMMON) $(quota_dist_sources) $(TEXINFOS) $(EXTRA_DIST) clean-generic: + if [ "$(top_srcdir)" != "$(top_builddir)" ]; then \ + rm -f $(top_builddir)/src/plugins/quota/rquota.x; \ + fi; \ rm -f rquota_xdr.c rquota.h -- 2.47.3