Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 8a0d9617d2b9741c25fb1ed20b96b054bd3254a3 1 parent 39617c7
igfoo igfoo authored
Showing with 9 additions and 1 deletion.
  1. +4 −0 SUBMAKEHELP
  2. +5 −1 mk/sub-makefile.mk
4 SUBMAKEHELP
View
@@ -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
6 mk/sub-makefile.mk
View
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.