Skip to content
Snippets Groups Projects
Commit 8a0d9617 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

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
...@@ -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
......
...@@ -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)
......
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