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

git at git.haskell.org git at git.haskell.org
Fri Jun 9 07:23:18 UTC 2017


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

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

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

commit 0f9d0245719f1455d43a44c3bfcec72f3fad7873
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!


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

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

diff --git a/Makefile b/Makefile
index 9b888e7..4863cd7 100644
--- a/Makefile
+++ b/Makefile
@@ -167,6 +167,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 3fafcf0..dd9d8b6 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