From 56e75bee23b0458ebe5198912c024475c762c355 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Sat, 28 Oct 2006 22:42:16 +0000 Subject: [PATCH] Make the build process informative again for 'make' 3.80 and earlier. Those 'make' versions are back to lower build speed (same as before my Makefile tuning). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11376 a1c6a512-1295-4272-9138-f99709370657 --- firmware/decompressor/Makefile | 2 +- tools/configure | 6 ++++++ tools/make.inc | 2 +- tools/makebmp.inc | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/firmware/decompressor/Makefile b/firmware/decompressor/Makefile index 17ccf6da77..46d7afe1b0 100644 --- a/firmware/decompressor/Makefile +++ b/firmware/decompressor/Makefile @@ -10,7 +10,7 @@ ifndef V SILENT=@ endif -PRINTS=$(info $(1))$(SILENT) +PRINTS=$(SILENT)$(call info,$(1)) LDS := link.lds LINKFILE = $(OBJDIR)/linkage.lds diff --git a/tools/configure b/tools/configure index 66636b55b4..d773c5aaf6 100755 --- a/tools/configure +++ b/tools/configure @@ -1421,6 +1421,12 @@ else VERBOSEOPT=-v endif +# old 'make' versions don't have the built-in 'info' function +info=old\$(warning Consider upgrading to GNU make 3.81+ for optimum build performance.) +ifeq (\$(call info),old) +export info=echo "\$\$(1)"; +endif + export ROOTDIR=@ROOTDIR@ export FIRMDIR=@FIRMDIR@ export APPSDIR=@APPSDIR@ diff --git a/tools/make.inc b/tools/make.inc index 8d75326bf0..8e125c834e 100644 --- a/tools/make.inc +++ b/tools/make.inc @@ -3,7 +3,7 @@ ifndef V SILENT=@ endif -PRINTS=$(info $(1))$(SILENT) +PRINTS=$(SILENT)$(call info,$(1)) $(OBJDIR)/%.o: %.c $(SILENT)mkdir -p $(dir $@) diff --git a/tools/makebmp.inc b/tools/makebmp.inc index 9c8c640203..987a21457f 100644 --- a/tools/makebmp.inc +++ b/tools/makebmp.inc @@ -5,7 +5,7 @@ dep: $(DEPFILE) ifndef V SILENT=@ endif -PRINTS=$(info $(1))$(SILENT) +PRINTS=$(SILENT)$(call info,$(1)) $(OBJDIR)/%.c: %.bmp $(SILENT)mkdir -p $(dir $@)