Skip to content
Snippets Groups Projects
Commit ec197d39 authored by Thomas Miedema's avatar Thomas Miedema
Browse files

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
parent 2e52057a
No related merge requests found
......@@ -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
......
......@@ -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:
......
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment