Created
August 13, 2014 21:25
-
-
Save o11c/fd668e544a15b941ea0d to your computer and use it in GitHub Desktop.
total makefile forwarding done right (probably)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.DEFAULT_GOAL := all | |
.PHONY: ${MAKECMDGOALS} | |
$(filter-out all,${MAKECMDGOALS}) all: .forward-all ; | |
.forward-all: | |
${MAKE} -C build ${MAKECMDGOALS} | |
${MAKEFILE_LIST}: ; | |
.SUFFIXES: |
Ok, I figured it out, this did the trick:
$(filter-out all,${MAKECMDGOALS}) all: .forward-all
@# no-op
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I call
foo
,bar
andbaz
are all forwarded successfully but it will also output:but no such output for
foo
Any idea?