Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexander Kaznacheev
GHC
Commits
8a0d9617
Commit
8a0d9617
authored
15 years ago
by
Ian Lynagh
Browse files
Options
Downloads
Patches
Plain Diff
Make the "show" target work anywhere in the build tree
parent
39617c78
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
SUBMAKEHELP
+4
-0
4 additions, 0 deletions
SUBMAKEHELP
mk/sub-makefile.mk
+5
-1
5 additions, 1 deletion
mk/sub-makefile.mk
with
9 additions
and
1 deletion
SUBMAKEHELP
+
4
−
0
View file @
8a0d9617
...
@@ -22,6 +22,10 @@
...
@@ -22,6 +22,10 @@
Make documentation in this directory (if any)
Make documentation in this directory (if any)
make show VALUE=var
Show the value of $(var)
make <file>
make <file>
Bring a particular file up to date, e.g. make dist/build/Module.o
Bring a particular file up to date, e.g. make dist/build/Module.o
...
...
This diff is collapsed.
Click to expand it.
mk/sub-makefile.mk
+
5
−
1
View file @
8a0d9617
...
@@ -36,13 +36,17 @@ endif
...
@@ -36,13 +36,17 @@ endif
.NOTPARALLEL
:
.NOTPARALLEL
:
STD_TARGETS
=
all clean distclean maintainer_clean
install
html ps pdf
STD_TARGETS
=
all clean distclean maintainer_clean
install
html ps pdf
DIRECTORY_INDEPENDENT_TARGETS
=
show
# The + tells make that we're recursively invoking make, otherwise 'make -j2'
# The + tells make that we're recursively invoking make, otherwise 'make -j2'
# goes wrong.
# goes wrong.
$(STD_TARGETS)
:
$(STD_TARGETS)
:
+
$(
TOPMAKE
)
$@
_
$(
dir
)
$(
EXTRA_MAKE_OPTS
)
+
$(
TOPMAKE
)
$@
_
$(
dir
)
$(
EXTRA_MAKE_OPTS
)
OTHERTARGETS
=
$(
filter-out fast
help
$(
STD_TARGETS
)
$(
SPEC_TARGETS
)
,
$(
MAKECMDGOALS
))
$(DIRECTORY_INDEPENDENT_TARGETS)
:
+
$(
TOPMAKE
)
$@
$(
EXTRA_MAKE_OPTS
)
OTHERTARGETS
=
$(
filter-out fast
help
show
$(
STD_TARGETS
)
$(
SPEC_TARGETS
)
,
$(
MAKECMDGOALS
))
.PHONY
:
$(OTHERTARGETS)
.PHONY
:
$(OTHERTARGETS)
$(OTHERTARGETS)
:
$(OTHERTARGETS)
:
+
$(
TOPMAKE
)
$(
dir
)
/
$@
$(
EXTRA_MAKE_OPTS
)
+
$(
TOPMAKE
)
$(
dir
)
/
$@
$(
EXTRA_MAKE_OPTS
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment