summaryrefslogtreecommitdiff
path: root/compiler/Makefile
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2008-08-17 12:10:00 +0000
committerIan Lynagh <igloo@earth.li>2008-08-17 12:10:00 +0000
commit5d82b8a5f6bedb0f62727e5dde90cef054edba1e (patch)
treef93a7bee6c6496a22fa2c35b9a4fb282f662d12a /compiler/Makefile
parent06781a444251b6aabfd9079f85ebcfa794f9db23 (diff)
downloadhaskell-5d82b8a5f6bedb0f62727e5dde90cef054edba1e.tar.gz
Don't clean the multi-stage stuff unless CLEAN_ALL_STAGES is YES
Diffstat (limited to 'compiler/Makefile')
-rw-r--r--compiler/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/Makefile b/compiler/Makefile
index 51ba8b98fc..eabf9c6e6d 100644
--- a/compiler/Makefile
+++ b/compiler/Makefile
@@ -55,6 +55,7 @@ stage2 ::
stage3 ::
$(MAKE) stage=3
+ifeq "$(CLEAN_ALL_STAGES)" "YES"
clean distclean::
$(RM) -f prelude/primops.txt
$(RM) -f $(PRIMOP_BITS)
@@ -62,6 +63,7 @@ clean distclean::
$(RM) -f parser/Parser.y
$(RM) -rf stage1 stage2plus
$(RM) -f $(STAGE3_PACKAGE_CONF)
+endif
ifeq "$(CLEAN_ALL_STAGES)" "YES"
clean distclean:: clean.stage.1 clean.stage.2 clean.stage.3