[build] added print-*, made it work

This commit is contained in:
M4x1m3
2019-12-22 17:13:28 +01:00
parent 45d7aee713
commit 53c7dfee8a
3 changed files with 19 additions and 8 deletions

View File

@@ -68,6 +68,11 @@ help:
@echo " make PLATFORM=simulator TARGET=web"
@echo " make PLATFORM=simulator TARGET=windows"
.PHONY: print-%
print-%:
@echo $* = $($*)
@echo $*\'s origin is $(origin $*)
# Since we're building out-of-tree, we need to make sure the output directories
# are created, otherwise the receipes will fail (e.g. gcc will fail to create
# "output/foo/bar.o" because the directory "output/foo" doesn't exist).