From dfed4b3e5472c69ed0580deb7e3d30843428375b Mon Sep 17 00:00:00 2001 From: Taylor R Campbell Date: Tue, 8 Oct 2013 02:56:57 +0000 Subject: [PATCH] Automatically clean tree and build tools if necessary. --- src/Makefile.in | 6 +----- src/Makefile.tools.in | 4 ++++ 2 files changed, 5 insertions(+), 5 deletions(-) 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: -- 2.25.1