projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add 'make fast' which omits deps (for a library) and some of the phases
[ghc-hetmet.git]
/
mk
/
sub-makefile.mk
diff --git
a/mk/sub-makefile.mk
b/mk/sub-makefile.mk
index
1e9cf22
..
a1d1e9b
100644
(file)
--- a/
mk/sub-makefile.mk
+++ b/
mk/sub-makefile.mk
@@
-14,21
+14,23
@@
TOPMAKE = $(MAKE) -C $(TOP)
TOPMAKE = $(MAKE) -C $(TOP)
-default :
- +$(TOPMAKE) all_$(dir)
+default: all
+
+fast :
+ +$(TOPMAKE) all_$(dir) $(dir)_dist-install_NO_BUILD_DEPS=YES \
+ OMIT_PHASE_1=YES OMIT_PHASE_2=YES OMIT_PHASE_3=YES
# We must not execute multiple recursive invocations of make in parallel.
.NOTPARALLEL:
# We must not execute multiple recursive invocations of make in parallel.
.NOTPARALLEL:
-# all comes first, we want it to be the default target
-STD_TARGETS = all clean distclean maintainer_clean install
+STD_TARGETS = all clean distclean maintainer_clean install html ps pdf
# The + tells make that we're recursively invoking make, otherwise 'make -j2'
# goes wrong.
$(STD_TARGETS):
+$(TOPMAKE) $@_$(dir)
# The + tells make that we're recursively invoking make, otherwise 'make -j2'
# goes wrong.
$(STD_TARGETS):
+$(TOPMAKE) $@_$(dir)
-OTHERTARGETS=$(filter-out $(STD_TARGETS) $(SPEC_TARGETS),$(MAKECMDGOALS))
+OTHERTARGETS=$(filter-out fast $(STD_TARGETS) $(SPEC_TARGETS),$(MAKECMDGOALS))
.PHONY: $(OTHERTARGETS)
$(OTHERTARGETS):
+$(TOPMAKE) $(dir)/$@
.PHONY: $(OTHERTARGETS)
$(OTHERTARGETS):
+$(TOPMAKE) $(dir)/$@