Commit 8a0d9617 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Make the "show" target work anywhere in the build tree

parent 39617c78
......@@ -22,6 +22,10 @@
Make documentation in this directory (if any)
make show VALUE=var
Show the value of $(var)
make <file>
Bring a particular file up to date, e.g. make dist/build/Module.o
......
......@@ -36,13 +36,17 @@ endif
.NOTPARALLEL:
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'
# goes wrong.
$(STD_TARGETS):
+$(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)
$(OTHERTARGETS):
+$(TOPMAKE) $(dir)/$@ $(EXTRA_MAKE_OPTS)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment