From: Taylor R Campbell Date: Tue, 8 Oct 2013 02:56:57 +0000 (+0000) Subject: Automatically clean tree and build tools if necessary. X-Git-Tag: release-9.2.0~69 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=dfed4b3e5472c69ed0580deb7e3d30843428375b;p=mit-scheme.git Automatically clean tree and build tools if necessary. --- diff --git a/src/Makefile.in b/src/Makefile.in index 2a3150cdb..a1524fdac 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -111,13 +111,9 @@ TOOL_TOOLCHAIN = $(HOST_SCHEME) --band ./tools/compiler.com \ .PHONY: toolchain toolchain: tools/compiler.com -toolchain: tools/syntaxer.com tools/compiler.com: - @echo >&2 'Please run `make -f Makefile.tools'\'' first.'; exit 1 - -tools/syntaxer.com: - @echo >&2 'Please run `make -f Makefile.tools'\'' first.'; exit 1 + $(MAKE) -f Makefile.tools clean && $(MAKE) -f Makefile.tools allclean # This target toolchain crud is a kludge until the whole system can be # cross-compiled. Currently only IMAIL can't be. diff --git a/src/Makefile.tools.in b/src/Makefile.tools.in index eb3b6d897..7b3a50700 100644 --- a/src/Makefile.tools.in +++ b/src/Makefile.tools.in @@ -76,6 +76,10 @@ SUBDIRS = compiler cref runtime sf star-parser all: tools/compiler.com all: tools/syntaxer.com +.PHONY: allclean +allclean: all + @for d in $(SUBDIRS); do (cd $$d && sh Clean.sh clean); done + # XXX This clean target is a cop-out. .PHONY: clean clean: