Mercurial > dovecot > original-hg > dovecot-1.2
diff src/plugins/quota/Makefile.am @ 9226:1b5a1ac430a7 HEAD
quota: Yet another build fix for old automakes.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 14 Jul 2009 12:39:55 -0400 |
parents | 66040bffc1a5 |
children | b6aaca59301a |
line wrap: on
line diff
--- 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_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_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