dovecot-1.2: quota: Yet another build fix for old automakes.

dovecot at dovecot.org dovecot at dovecot.org
Tue Jul 14 19:40:01 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/1b5a1ac430a7
changeset: 9226:1b5a1ac430a7
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Jul 14 12:39:55 2009 -0400
description:
quota: Yet another build fix for old automakes.

diffstat:

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

diffs (25 lines):

diff -r f353c5b71097 -r 1b5a1ac430a7 src/plugins/quota/Makefile.am
--- a/src/plugins/quota/Makefile.am	Mon Jul 27 16:43:59 2009 -0400
+++ b/src/plugins/quota/Makefile.am	Tue Jul 14 12:39:55 2009 -0400
@@ -37,9 +37,8 @@ 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>'; \
@@ -74,7 +73,7 @@ DISTFILES = $(DIST_COMMON) $(quota_dist_
 DISTFILES = $(DIST_COMMON) $(quota_dist_sources) $(TEXINFOS) $(EXTRA_DIST)
 
 clean-generic:
-	if [ "$(builddir)" != "" ] && [ "$(srcdir)" != "$(builddir)" ]; then \
-	  rm -f $(builddir)/rquota.x; \
+	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