Hide more make rules when cleaning
[ghc-hetmet.git] / 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