[commit: ghc] master: Build system: add `make show!` command (#7810) (ec197d3)
git at git.haskell.org
git at git.haskell.org
Mon Jul 13 19:09:03 UTC 2015
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/ec197d390e18a6cfaa420009f5c5f143237f5a9f/ghc
>---------------------------------------------------------------
commit ec197d390e18a6cfaa420009f5c5f143237f5a9f
Author: Thomas Miedema <thomasmiedema at gmail.com>
Date: Fri Jul 10 18:38:02 2015 +0200
Build system: add `make show!` command (#7810)
A normal `make show` starts a build of the ghc-stage1 compiler, to
create package-data.mk files. This version doesn't read those, so it
will work right after ./configure.
Differential Revision: https://phabricator.haskell.org/D1064
>---------------------------------------------------------------
ec197d390e18a6cfaa420009f5c5f143237f5a9f
MAKEHELP.md | 5 +++++
Makefile | 5 +++++
mk/sub-makefile.mk | 4 ++--
3 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/MAKEHELP.md b/MAKEHELP.md
index ff0e434..3b58292 100644
--- a/MAKEHELP.md
+++ b/MAKEHELP.md
@@ -36,6 +36,11 @@ Common commands:
Displays the value of make variable <var>
+ - `make show! VALUE=<var>`
+
+ Same as `make show`, but works right after ./configure (it skips reading
+ package-data.mk files).
+
- make clean
- make distclean
- make maintainer-clean
diff --git a/Makefile b/Makefile
index c08ccc5..b1b1742 100644
--- a/Makefile
+++ b/Makefile
@@ -78,6 +78,7 @@ REALGOALS=$(filter-out \
distclean \
maintainer-clean \
show \
+ show! \
echo \
help \
test \
@@ -142,6 +143,10 @@ $(filter clean_%, $(MAKECMDGOALS)) : clean_% :
bootstrapping-files show echo:
$(MAKE) --no-print-directory -f ghc.mk $@
+.PHONY: show!
+show!:
+ $(MAKE) --no-print-directory -f ghc.mk show NO_INCLUDE_PKGDATA=YES
+
ifeq "$(darwin_TARGET_OS)" "1"
.PHONY: framework-pkg
framework-pkg:
diff --git a/mk/sub-makefile.mk b/mk/sub-makefile.mk
index 12f47f0..73d98c9 100644
--- a/mk/sub-makefile.mk
+++ b/mk/sub-makefile.mk
@@ -42,7 +42,7 @@ endif
.NOTPARALLEL:
STD_TARGETS = all clean distclean maintainer_clean install html ps pdf
-DIRECTORY_INDEPENDENT_TARGETS = show
+DIRECTORY_INDEPENDENT_TARGETS = show show!
# The + tells make that we're recursively invoking make, otherwise 'make -j2'
# goes wrong.
@@ -52,7 +52,7 @@ $(STD_TARGETS):
$(DIRECTORY_INDEPENDENT_TARGETS):
+$(TOPMAKE) $@ $(EXTRA_MAKE_OPTS)
-OTHERTARGETS=$(filter-out fast help show $(STD_TARGETS) $(SPEC_TARGETS),$(MAKECMDGOALS))
+OTHERTARGETS=$(filter-out fast help $(DIRECTORY_INDEPENDENT_TARGETS) $(STD_TARGETS) $(SPEC_TARGETS),$(MAKECMDGOALS))
.PHONY: $(OTHERTARGETS)
$(OTHERTARGETS):
+$(TOPMAKE) $(dir)/$@ $(EXTRA_MAKE_OPTS)
More information about the ghc-commits
mailing list