Hide more make rules when cleaning
authorIan Lynagh <igloo@earth.li>
Sat, 16 May 2009 11:45:11 +0000 (11:45 +0000)
committerIan Lynagh <igloo@earth.li>
Sat, 16 May 2009 11:45:11 +0000 (11:45 +0000)
rts/ghc.mk

index 0e7650e..c22c862 100644 (file)
@@ -85,6 +85,8 @@ define cmm-suffix-rules
 
 # .cmm files depend on all the .h files, to a first approximation.
 
+ifneq "$$(CLEANING)" "YES"
+
 ifneq "$$(BootingFromHc)" "YES"
 
 $1/$2/build/%.$$($3_way_)o : $1/%.cmm $$(rts_H_FILES) $$($1_$2_HC)
@@ -113,6 +115,8 @@ $1/$2/build/%.$$($3_way_)o : $1/%.hc
 $1/$2/build/%.$$($3_way_)o : $1/$2/build/%.hc
        $$(CC) $$($1_$2_$3_ALL_CC_OPTS) -Iincludes -x c -c $$< -o $$@
 
+endif
+
 endef