diff options
author | Tom Finegan <tomfinegan@google.com> | 2015-05-13 11:16:09 -0700 |
---|---|---|
committer | Tom Finegan <tomfinegan@google.com> | 2015-05-13 11:16:09 -0700 |
commit | 3007db0b456779cf0ab926f875c1723e77aeba20 (patch) | |
tree | 6f4f3d01942fb88fab6c30b8ec1764f8d8283708 | |
parent | ae14b374318bd294ec0575347bcdf628cecbece2 (diff) | |
download | libvpx-3007db0b456779cf0ab926f875c1723e77aeba20.tar libvpx-3007db0b456779cf0ab926f875c1723e77aeba20.tar.gz libvpx-3007db0b456779cf0ab926f875c1723e77aeba20.tar.bz2 libvpx-3007db0b456779cf0ab926f875c1723e77aeba20.zip |
Avoid failed include when Makefile is processed with no target.
Basically just a warning, but disconcerting nonetheless. Removes this
output from the build:
Makefile:59: -x86_64-darwin13-gcc.mk: No such file or directory
Change-Id: Ibb379506352b2f613ef4a7b1ac47e9c95d0d1580
-rw-r--r-- | build/make/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/build/make/Makefile b/build/make/Makefile index 71d33bde6..a16f41c2f 100644 --- a/build/make/Makefile +++ b/build/make/Makefile @@ -56,7 +56,11 @@ dist: fi endif +# Since we invoke make recursively for multiple targets we need to include the +# .mk file for the correct target, but only when $(target) is non-empty. +ifneq ($(target),) include $(target)-$(TOOLCHAIN).mk +endif BUILD_ROOT?=. VPATH=$(SRC_PATH_BARE) CFLAGS+=-I$(BUILD_PFX)$(BUILD_ROOT) -I$(SRC_PATH) |