aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorwhitequark <whitequark@whitequark.org>2020-04-16 13:28:34 +0000
committerGitHub <noreply@github.com>2020-04-16 13:28:34 +0000
commit2ee028dcf16339408f8c9423efdcc4497f705dc2 (patch)
tree31efacd412b9217bb5c879d6e7d6a22d5908d70b /Makefile
parente1f5145afaad3147809d80adfa56048fffc5a603 (diff)
parent333981acfdf0d7ab0db35f7d2b41e51cf66d6b71 (diff)
downloadyosys-2ee028dcf16339408f8c9423efdcc4497f705dc2.tar.gz
yosys-2ee028dcf16339408f8c9423efdcc4497f705dc2.tar.bz2
yosys-2ee028dcf16339408f8c9423efdcc4497f705dc2.zip
Merge pull request #1900 from Xiretza/suppress-makefile-echo
Suppress output of Makefile.conf when printing source versions
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index fc417ab9d..b3cfd71f9 100644
--- a/Makefile
+++ b/Makefile
@@ -148,7 +148,10 @@ define newline
endef
ifneq ($(wildcard Makefile.conf),)
+# don't echo Makefile.conf contents when invoked to print source versions
+ifeq ($(findstring echo-,$(MAKECMDGOALS)),)
$(info $(subst $$--$$,$(newline),$(shell sed 's,^,[Makefile.conf] ,; s,$$,$$--$$,;' < Makefile.conf | tr -d '\n' | sed 's,\$$--\$$$$,,')))
+endif
include Makefile.conf
endif