chg: easy printing of MAKE variables

Usage::
  make print-FLASHTOOL
  cd bootrom; make print-APP_CFLAGS
  cd client; make print-GCC_VERSION
This commit is contained in:
iceman1001 committed 2017-09-18 18:59:51 +02:00
1 parent 3839ce006d
commit 28f1f23d48
4 files changed
+10 -3

No files matched your search

+3
View File
@@ -109,6 +109,9 @@ $(OBJDIR)/%.s19: $(OBJDIR)/%.elf
version.c: default_version.c
perl ../tools/mkversion.pl .. > $@ || $(COPY) $^ $@
# easy printing of MAKE VARIABLES
print-%: ; @echo $* = $($*)
# Automatic dependency generation
DEPENDENCY_FILES = $(patsubst %.c,$(OBJDIR)/%.d,$(notdir $(THUMBSRC))) \
$(patsubst %.c,$(OBJDIR)/%.d,$(notdir $(ARMSRC))) \