dovecot-2.0: quota-fs: Building fixes.

dovecot at dovecot.org dovecot at dovecot.org
Wed Jul 15 19:13:58 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/4ea40abcc301
changeset: 9628:4ea40abcc301
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Jul 15 12:13:52 2009 -0400
description:
quota-fs: Building fixes.

diffstat:

1 file changed, 6 insertions(+), 4 deletions(-)
src/plugins/quota/Makefile.am |   10 ++++++----

diffs (28 lines):

diff -r ce601bb82183 -r 4ea40abcc301 src/plugins/quota/Makefile.am
--- a/src/plugins/quota/Makefile.am	Tue Jul 14 18:04:05 2009 -0400
+++ b/src/plugins/quota/Makefile.am	Wed Jul 15 12:13:52 2009 -0400
@@ -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 <rpc/rpc.h>'; \
-	 $(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 @@ DISTFILES = $(DIST_COMMON) $(quota_dist_
 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


More information about the dovecot-cvs mailing list