$NetBSD: patch-ag,v 1.2 2010/04/17 17:11:05 kefren Exp $ --- src/addins/MonoDevelop.Autotools/templates/make-dist.targets.orig 2010-04-16 13:18:51.000000000 +0300 +++ src/addins/MonoDevelop.Autotools/templates/make-dist.targets 2010-04-16 13:19:21.000000000 +0300 @@ -1,18 +1,18 @@ dist: $(CONFIG_MAKE) rm -rf $(PACKAGE)-$(VERSION) mkdir $(PACKAGE)-$(VERSION) - make pre-dist-hook distdir=$$distdir + MAKEPROGRAM pre-dist-hook distdir=$$distdir for dir in $(call quote_each,$(SUBDIRS)); do \ pkgdir=`pwd`/$(PACKAGE)-$(VERSION); \ mkdir "$$pkgdir/$$dir" || true; \ case $$dir in \ - .) make dist-local "distdir=$$pkgdir" || exit 1;; \ - *) (cd "$$dir"; make dist-local "distdir=$$pkgdir/$$dir") || exit 1;; \ + .) MAKEPROGRAM dist-local "distdir=$$pkgdir" || exit 1;; \ + *) (cd "$$dir"; MAKEPROGRAM dist-local "distdir=$$pkgdir/$$dir") || exit 1;; \ esac \ done - (make dist-local distdir=$(PACKAGE)-$(VERSION)) - make - make post-dist-hook "distsir=$$distdir" + (MAKEPROGRAM dist-local distdir=$(PACKAGE)-$(VERSION)) + MAKEPROGRAM + MAKEPROGRAM post-dist-hook "distsir=$$distdir" tar czvf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION) rm -rf $(PACKAGE)-$(VERSION) @echo "==========================================" @@ -23,5 +23,5 @@ (mkdir test; cd test; \ tar xzvf ../$(PACKAGE)-$(VERSION).tar.gz; cd $(PACKAGE)-$(VERSION); \ ./configure --prefix=$$(cd `pwd`/..; pwd); \ - make && make install && make dist); + MAKEPROGRAM && ${MAKE_PROGRAM} install && ${MAKE_PROGRAM} dist); rm -rf test