[FFmpeg-user] [PATCH] build: don't print brief make messages for empty variables

Ingo Brückl ib at wupperonline.de
Wed Oct 23 13:13:50 CEST 2013


This won't give false information to the user in case a variable isn't
defined (although this isn't the case yet), and - more important - it
will allow proper checking for variables as in commit e52567c2954f627d.
---
 common.mak |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common.mak b/common.mak
index 6479b08..ccc3b55 100644
--- a/common.mak
+++ b/common.mak
@@ -16,7 +16,7 @@ SILENT = DEPCC DEPHOSTCC DEPAS DEPYASM RANLIB RM
 MSG    = $@
 M      = @$(call ECHO,$(TAG),$@);
 $(foreach VAR,$(BRIEF), \
-    $(eval override $(VAR) = @$$(call ECHO,$(VAR),$$(MSG)); $($(VAR))))
+    $(if $($(VAR)),$(eval override $(VAR) = @$$(call ECHO,$(VAR),$$(MSG)); $($(VAR)))))
 $(foreach VAR,$(SILENT),$(eval override $(VAR) = @$($(VAR))))
 $(eval INSTALL = @$(call ECHO,INSTALL,$$(^:$(SRC_DIR)/%=%)); $(INSTALL))
 endif
--
1.7.10



More information about the ffmpeg-user mailing list