[commit: ghc] wip/jenkins: Introduce echo! make target (fcf5edf)

git at git.haskell.org git at git.haskell.org
Fri Jul 28 16:41:32 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/jenkins
Link       : http://ghc.haskell.org/trac/ghc/changeset/fcf5edf317c6d363ca80ff6fb543b6128e48c278/ghc

>---------------------------------------------------------------

commit fcf5edf317c6d363ca80ff6fb543b6128e48c278
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Sun Jun 4 10:27:24 2017 -0400

    Introduce echo! make target
    
    This is analogous to show!


>---------------------------------------------------------------

fcf5edf317c6d363ca80ff6fb543b6128e48c278
 Makefile | 4 ++++
 ghc.mk   | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/Makefile b/Makefile
index 8046e36..89361d9 100644
--- a/Makefile
+++ b/Makefile
@@ -173,6 +173,10 @@ $(filter clean_%, $(MAKECMDGOALS)) : clean_% :
 bootstrapping-files show echo:
 	$(MAKE) --no-print-directory -f ghc.mk $@
 
+.PHONY: echo!
+echo!:
+	@$(MAKE) --no-print-directory -f ghc.mk echo NO_INCLUDE_PKGDATA=YES
+
 .PHONY: show!
 show!:
 	$(MAKE) --no-print-directory -f ghc.mk show NO_INCLUDE_PKGDATA=YES
diff --git a/ghc.mk b/ghc.mk
index 4eb1658..b3410ac 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -260,6 +260,10 @@ ifeq "$(findstring show,$(MAKECMDGOALS))" "show"
 NO_INCLUDE_DEPS = YES
 # We want package-data.mk for show
 endif
+ifeq "$(findstring echo,$(MAKECMDGOALS))" "echo"
+NO_INCLUDE_DEPS = YES
+# We want package-data.mk for show
+endif
 
 # -----------------------------------------------------------------------------
 # Ways



More information about the ghc-commits mailing list