Move the fixed paths out of config.mk, so cleaning works without configuring
[ghc-hetmet.git] / rules / build-prog.mk
index 8397f3f..4bfc1e1 100644 (file)
@@ -24,9 +24,11 @@ define build-prog
 # $2 = distdir
 # $3 = GHC stage to use (0 == bootstrapping compiler)
 
+ifneq "$$(CLEANING)" "YES"
 ifeq "$$($1_$2_PROG)" ""
 $$(error $1_$2_PROG is not set)
 endif
+endif
 
 ifeq "$$(findstring $3,0 1 2)" ""
 $$(error $1/$2: stage argument to build-prog should be 0, 1, or 2)