Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
jberryman
GHC
Commits
f684f630
Commit
f684f630
authored
Jun 16, 2009
by
Simon Marlow
Browse files
Add support for 'make help' in subdirectories
Including help for directory-specific targets, such as 'make 1' in ghc
parent
2dfd2ac7
Changes
4
Hide whitespace changes
Inline
Side-by-side
compiler/Makefile
View file @
f684f630
...
...
@@ -26,3 +26,12 @@ include $(TOP)/mk/sub-makefile.mk
3
:
+
$(TOPMAKE)
stage
=
3 all_ghc_stage3
compiler_stage3_NO_BUILD_DEPS
=
YES
OMIT_PHASE_1
=
YES
OMIT_PHASE_2
=
YES
OMIT_PHASE_3
=
YES
.PHONY
:
extra-help
help
:
extra-help
extra-help
:
@
echo
" make 1"
@
echo
" make 2"
@
echo
" make 3"
@
echo
@
echo
" Build the stage 1, 2 or 3 GHC respectively, omitting dependencies"
@
echo
" and initial phases for speed."
ghc/Makefile
View file @
f684f630
...
...
@@ -26,3 +26,12 @@ include $(TOP)/mk/sub-makefile.mk
3
:
+
$(TOPMAKE)
stage
=
3 all_ghc_stage3
compiler_stage3_NO_BUILD_DEPS
=
YES
.PHONY
:
extra-help
help
:
extra-help
extra-help
:
@
echo
" make 1"
@
echo
" make 2"
@
echo
" make 3"
@
echo
@
echo
" Build the stage 1, 2 or 3 GHC respectively, omitting dependencies"
@
echo
" and initial phases for speed."
libraries/Makefile
View file @
f684f630
...
...
@@ -5,3 +5,11 @@ include $(TOP)/mk/sub-makefile.mk
.PHONY
:
1
1
:
+
$(TOPMAKE)
stage1_libs
.PHONY
:
extra-help
help
:
extra-help
extra-help
:
@
echo
" make 1"
@
echo
@
echo
" Build all libraries that are built by the stage1 GHC"
@
echo
mk/sub-makefile.mk
View file @
f684f630
...
...
@@ -30,7 +30,16 @@ STD_TARGETS = all clean distclean maintainer_clean install html ps pdf
$(STD_TARGETS)
:
+
$(TOPMAKE)
$@
_
$(dir)
OTHERTARGETS
=
$(
filter-out
fast
$(STD_TARGETS)
$(SPEC_TARGETS)
,
$(MAKECMDGOALS)
)
OTHERTARGETS
=
$(
filter-out
fast
help
$(STD_TARGETS)
$(SPEC_TARGETS)
,
$(MAKECMDGOALS)
)
.PHONY
:
$(OTHERTARGETS)
$(OTHERTARGETS)
:
+
$(TOPMAKE)
$(dir)
/
$@
.PHONY
:
help
help
:
sub-help
.PHONY
:
sub-help
sub-help
:
@
echo
"You are in subdirectory
\"
$(dir)
\"
."
@
echo
"Useful targets in this directory:"
@
cat
$(TOP)
/SUBMAKEHELP
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment