Testsuite: mark T8089 expect_broken(#7325) on Windows
[ghc.git] / rules / build-perl.mk
index 157ed2b..b943e16 100644 (file)
@@ -5,8 +5,8 @@
 # This file is part of the GHC build system.
 #
 # To understand how the build system works and how to modify it, see
-#      http://hackage.haskell.org/trac/ghc/wiki/Building/Architecture
-#      http://hackage.haskell.org/trac/ghc/wiki/Building/Modifying
+#      http://ghc.haskell.org/trac/ghc/wiki/Building/Architecture
+#      http://ghc.haskell.org/trac/ghc/wiki/Building/Modifying
 #
 # -----------------------------------------------------------------------------
 
@@ -24,7 +24,6 @@ $(call profStart, build-perl($1,$2))
 # $1 = dir
 # $2 = distdir
 
-ifneq "$$(CLEANING)" "YES"
 ifeq "$$($1_$2_PROGNAME)" ""
 $$(error $1_$2_PROGNAME is not set)
 endif
@@ -41,7 +40,6 @@ $$($1_$2_PROG)_INPLACE = $$(INPLACE_TOPDIR)/$$($1_$2_PROG)
 else
 $$($1_$2_PROG)_INPLACE = $$(INPLACE_BIN)/$$($1_$2_PROG)
 endif
-endif
 
 $1_$2_INPLACE = $$($$($1_$2_PROG)_INPLACE)
 
@@ -51,12 +49,9 @@ $(call clean-target,$1,$2,$1/$2 $$($1_$2_INPLACE))
 .PHONY: clean_$1
 clean_$1 : clean_$1_$2
 
-# INPLACE_BIN etc. might be empty if we're cleaning
-ifeq "$(findstring clean,$(MAKECMDGOALS))" ""
 ifneq "$$(BINDIST)" "YES"
 $1/$2/$$($1_$2_PROG).prl: $1/$$($1_PERL_SRC) $$$$(unlit_INPLACE) | $$$$(dir $$$$@)/.
        "$$(unlit_INPLACE)" $$(UNLIT_OPTS) $$< $$@
-endif
 
 $1/$2/$$($1_$2_PROG): $1/$2/$$($1_$2_PROG).prl
        $$(call removeFiles,$$@)
@@ -68,7 +63,14 @@ $1/$2/$$($1_$2_PROG): $1/$2/$$($1_$2_PROG).prl
 $$($1_$2_INPLACE): $1/$2/$$($1_$2_PROG) | $$$$(dir $$$$@)/.
        "$$(CP)" $$< $$@
        $$(EXECUTABLE_FILE) $$@
+endif
 
+ifeq "$$($1_$2_INSTALL)" "YES"
+ifeq "$$($1_$2_TOPDIR)" "YES"
+INSTALL_TOPDIRS  += $$($1_$2_INPLACE)
+else
+INSTALL_BINS     += $$($1_$2_INPLACE)
+endif
 endif
 
 $(call profEnd, build-perl($1,$2))