diff --git a/src/Makefile b/src/Makefile
index fe1f6bec679f8439ce7948a2418d6db2c5a5befa..71f4b4cc96750311c83f95d4403617c9c9e55a85 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -539,10 +539,12 @@ OBJS:=$(i_main_o) \
 
 
 ifndef ECHO
+ifndef NOECHOFILENAMES
 define echoName =
 	@echo -- $< ...
 endef
 endif
+endif
 
 # List of languages to compile.
 # For reference, this is the command I use to build a srb2.pot file from the source code.