From 8cb05784472c63e4b126426e21c0ce96de131b8b Mon Sep 17 00:00:00 2001 From: Gorilla Sapiens Date: Wed, 18 Jun 2025 06:38:38 +0000 Subject: [PATCH] changes suggested by mrdudz --- Makefile | 10 +++------- doc/Makefile | 10 +++------- libsrc/Makefile | 10 +++------- samples/Makefile | 10 +++------- samples/apple2/Makefile | 10 +++------- samples/atari2600/Makefile | 10 +++------- samples/atari5200/Makefile | 10 +++------- samples/cbm/Makefile | 10 +++------- samples/disasm/Makefile | 10 +++------- samples/gamate/Makefile | 10 +++------- samples/geos/Makefile | 10 +++------- samples/geos/grc/Makefile | 10 +++------- samples/kim1/Makefile | 10 +++------- samples/lynx/Makefile | 10 +++------- samples/sim65/Makefile | 10 +++------- samples/supervision/Makefile | 10 +++------- samples/sym1/Makefile | 10 +++------- samples/tutorial/Makefile | 10 +++------- src/Makefile | 10 +++------- targettest/Makefile | 10 +++------- targettest/accelerator/Makefile | 10 +++------- targettest/atari/Makefile | 10 +++------- targettest/cbm/Makefile | 10 +++------- targettest/gamate/Makefile | 10 +++------- targettest/pce/Makefile | 10 +++------- test/Makefile | 10 +++------- test/asm/Makefile | 10 +++------- test/asm/cpudetect/Makefile | 10 +++------- test/asm/err/Makefile | 10 +++------- test/asm/listing/Makefile | 10 +++------- test/asm/misc/Makefile | 10 +++------- test/asm/opcodes/Makefile | 10 +++------- test/asm/val/Makefile | 10 +++------- test/dasm/Makefile | 10 +++------- test/err/Makefile | 10 +++------- test/misc/Makefile | 10 +++------- test/ref/Makefile | 10 +++------- test/standard/Makefile | 10 +++------- test/standard_err/Makefile | 10 +++------- test/todo/Makefile | 10 +++------- test/val/Makefile | 10 +++------- util/Makefile | 10 +++------- util/atari/Makefile | 10 +++------- util/gamate/Makefile | 10 +++------- util/zlib/Makefile | 10 +++------- 45 files changed, 135 insertions(+), 315 deletions(-) diff --git a/Makefile b/Makefile index 912dbf7cb..13e965c9e 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,8 @@ # ---- Display info during parsing phase ---- -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) -$(info ~~~ Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST)))) -ifeq ($(MAKECMDGOALS),) - $(info ~~~ Invoked target: (default)) -else - $(info ~~~ Invoked target: $(MAKECMDGOALS)) +SILENT:=$(findstring s,$(word 1, $(MAKEFLAGS))) +ifneq ($(SILENT),s) + $(info Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST))) $(MAKECMDGOALS)) endif -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) .PHONY: all mostlyclean clean install zip avail unavail bin lib doc html info samples test util checkstyle check diff --git a/doc/Makefile b/doc/Makefile index cbb41132d..330f7b31c 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -1,12 +1,8 @@ # ---- Display info during parsing phase ---- -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) -$(info ~~~ Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST)))) -ifeq ($(MAKECMDGOALS),) - $(info ~~~ Invoked target: (default)) -else - $(info ~~~ Invoked target: $(MAKECMDGOALS)) +SILENT:=$(findstring s,$(word 1, $(MAKEFLAGS))) +ifneq ($(SILENT),s) + $(info Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST))) $(MAKECMDGOALS)) endif -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) ifneq ($(shell echo),) CMD_EXE = 1 diff --git a/libsrc/Makefile b/libsrc/Makefile index 487c9d8a1..1ec0bcfea 100644 --- a/libsrc/Makefile +++ b/libsrc/Makefile @@ -1,12 +1,8 @@ # ---- Display info during parsing phase ---- -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) -$(info ~~~ Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST)))) -ifeq ($(MAKECMDGOALS),) - $(info ~~~ Invoked target: (default)) -else - $(info ~~~ Invoked target: $(MAKECMDGOALS)) +SILENT:=$(findstring s,$(word 1, $(MAKEFLAGS))) +ifneq ($(SILENT),s) + $(info Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST))) $(MAKECMDGOALS)) endif -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) ifneq ($(shell echo),) CMD_EXE = 1 diff --git a/samples/Makefile b/samples/Makefile index 9c9d4bcf6..0a56af3c1 100644 --- a/samples/Makefile +++ b/samples/Makefile @@ -1,12 +1,8 @@ # ---- Display info during parsing phase ---- -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) -$(info ~~~ Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST)))) -ifeq ($(MAKECMDGOALS),) - $(info ~~~ Invoked target: (default)) -else - $(info ~~~ Invoked target: $(MAKECMDGOALS)) +SILENT:=$(findstring s,$(word 1, $(MAKEFLAGS))) +ifneq ($(SILENT),s) + $(info Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST))) $(MAKECMDGOALS)) endif -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) # # Makefile for cc65 samples diff --git a/samples/apple2/Makefile b/samples/apple2/Makefile index 2bf9ca257..d9fa40f66 100644 --- a/samples/apple2/Makefile +++ b/samples/apple2/Makefile @@ -1,12 +1,8 @@ # ---- Display info during parsing phase ---- -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) -$(info ~~~ Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST)))) -ifeq ($(MAKECMDGOALS),) - $(info ~~~ Invoked target: (default)) -else - $(info ~~~ Invoked target: $(MAKECMDGOALS)) +SILENT:=$(findstring s,$(word 1, $(MAKEFLAGS))) +ifneq ($(SILENT),s) + $(info Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST))) $(MAKECMDGOALS)) endif -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) # Run 'make SYS='; or, set a SYS env. diff --git a/samples/atari2600/Makefile b/samples/atari2600/Makefile index 8224b8784..71264792d 100644 --- a/samples/atari2600/Makefile +++ b/samples/atari2600/Makefile @@ -1,12 +1,8 @@ # ---- Display info during parsing phase ---- -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) -$(info ~~~ Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST)))) -ifeq ($(MAKECMDGOALS),) - $(info ~~~ Invoked target: (default)) -else - $(info ~~~ Invoked target: $(MAKECMDGOALS)) +SILENT:=$(findstring s,$(word 1, $(MAKEFLAGS))) +ifneq ($(SILENT),s) + $(info Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST))) $(MAKECMDGOALS)) endif -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) # Run 'make SYS='; or, set a SYS env. diff --git a/samples/atari5200/Makefile b/samples/atari5200/Makefile index 838966782..1bdf1b75d 100644 --- a/samples/atari5200/Makefile +++ b/samples/atari5200/Makefile @@ -1,12 +1,8 @@ # ---- Display info during parsing phase ---- -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) -$(info ~~~ Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST)))) -ifeq ($(MAKECMDGOALS),) - $(info ~~~ Invoked target: (default)) -else - $(info ~~~ Invoked target: $(MAKECMDGOALS)) +SILENT:=$(findstring s,$(word 1, $(MAKEFLAGS))) +ifneq ($(SILENT),s) + $(info Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST))) $(MAKECMDGOALS)) endif -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) # Run 'make SYS='; or, set a SYS env. diff --git a/samples/cbm/Makefile b/samples/cbm/Makefile index fbd0248be..a593569b0 100644 --- a/samples/cbm/Makefile +++ b/samples/cbm/Makefile @@ -1,12 +1,8 @@ # ---- Display info during parsing phase ---- -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) -$(info ~~~ Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST)))) -ifeq ($(MAKECMDGOALS),) - $(info ~~~ Invoked target: (default)) -else - $(info ~~~ Invoked target: $(MAKECMDGOALS)) +SILENT:=$(findstring s,$(word 1, $(MAKEFLAGS))) +ifneq ($(SILENT),s) + $(info Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST))) $(MAKECMDGOALS)) endif -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) # Run 'make SYS='; or, set a SYS env. diff --git a/samples/disasm/Makefile b/samples/disasm/Makefile index 818742e5c..6599915f6 100644 --- a/samples/disasm/Makefile +++ b/samples/disasm/Makefile @@ -1,12 +1,8 @@ # ---- Display info during parsing phase ---- -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) -$(info ~~~ Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST)))) -ifeq ($(MAKECMDGOALS),) - $(info ~~~ Invoked target: (default)) -else - $(info ~~~ Invoked target: $(MAKECMDGOALS)) +SILENT:=$(findstring s,$(word 1, $(MAKEFLAGS))) +ifneq ($(SILENT),s) + $(info Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST))) $(MAKECMDGOALS)) endif -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) # Sample makefile using a preprocessor against info files # and the --sync-lines option diff --git a/samples/gamate/Makefile b/samples/gamate/Makefile index 629b5a584..35aef293d 100644 --- a/samples/gamate/Makefile +++ b/samples/gamate/Makefile @@ -1,12 +1,8 @@ # ---- Display info during parsing phase ---- -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) -$(info ~~~ Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST)))) -ifeq ($(MAKECMDGOALS),) - $(info ~~~ Invoked target: (default)) -else - $(info ~~~ Invoked target: $(MAKECMDGOALS)) +SILENT:=$(findstring s,$(word 1, $(MAKEFLAGS))) +ifneq ($(SILENT),s) + $(info Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST))) $(MAKECMDGOALS)) endif -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) # Run 'make SYS='; or, set a SYS env. diff --git a/samples/geos/Makefile b/samples/geos/Makefile index 9d7a98d3f..ad4033f80 100644 --- a/samples/geos/Makefile +++ b/samples/geos/Makefile @@ -1,12 +1,8 @@ # ---- Display info during parsing phase ---- -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) -$(info ~~~ Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST)))) -ifeq ($(MAKECMDGOALS),) - $(info ~~~ Invoked target: (default)) -else - $(info ~~~ Invoked target: $(MAKECMDGOALS)) +SILENT:=$(findstring s,$(word 1, $(MAKEFLAGS))) +ifneq ($(SILENT),s) + $(info Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST))) $(MAKECMDGOALS)) endif -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) # Run 'make SYS='; or, set a SYS env. diff --git a/samples/geos/grc/Makefile b/samples/geos/grc/Makefile index f3343a4bb..360c7bc7d 100644 --- a/samples/geos/grc/Makefile +++ b/samples/geos/grc/Makefile @@ -1,12 +1,8 @@ # ---- Display info during parsing phase ---- -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) -$(info ~~~ Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST)))) -ifeq ($(MAKECMDGOALS),) - $(info ~~~ Invoked target: (default)) -else - $(info ~~~ Invoked target: $(MAKECMDGOALS)) +SILENT:=$(findstring s,$(word 1, $(MAKEFLAGS))) +ifneq ($(SILENT),s) + $(info Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST))) $(MAKECMDGOALS)) endif -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) # Run 'make SYS='; or, set a SYS env. diff --git a/samples/kim1/Makefile b/samples/kim1/Makefile index 96a64cbcf..dbdbcec8d 100644 --- a/samples/kim1/Makefile +++ b/samples/kim1/Makefile @@ -1,12 +1,8 @@ # ---- Display info during parsing phase ---- -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) -$(info ~~~ Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST)))) -ifeq ($(MAKECMDGOALS),) - $(info ~~~ Invoked target: (default)) -else - $(info ~~~ Invoked target: $(MAKECMDGOALS)) +SILENT:=$(findstring s,$(word 1, $(MAKEFLAGS))) +ifneq ($(SILENT),s) + $(info Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST))) $(MAKECMDGOALS)) endif -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) # Run 'make SYS='; or, set a SYS env. diff --git a/samples/lynx/Makefile b/samples/lynx/Makefile index 44e6cec71..078ea129a 100644 --- a/samples/lynx/Makefile +++ b/samples/lynx/Makefile @@ -1,12 +1,8 @@ # ---- Display info during parsing phase ---- -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) -$(info ~~~ Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST)))) -ifeq ($(MAKECMDGOALS),) - $(info ~~~ Invoked target: (default)) -else - $(info ~~~ Invoked target: $(MAKECMDGOALS)) +SILENT:=$(findstring s,$(word 1, $(MAKEFLAGS))) +ifneq ($(SILENT),s) + $(info Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST))) $(MAKECMDGOALS)) endif -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) # Run 'make SYS='; or, set a SYS env. diff --git a/samples/sim65/Makefile b/samples/sim65/Makefile index 0cf9778c6..3a06321ee 100644 --- a/samples/sim65/Makefile +++ b/samples/sim65/Makefile @@ -1,12 +1,8 @@ # ---- Display info during parsing phase ---- -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) -$(info ~~~ Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST)))) -ifeq ($(MAKECMDGOALS),) - $(info ~~~ Invoked target: (default)) -else - $(info ~~~ Invoked target: $(MAKECMDGOALS)) +SILENT:=$(findstring s,$(word 1, $(MAKEFLAGS))) +ifneq ($(SILENT),s) + $(info Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST))) $(MAKECMDGOALS)) endif -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) # Run 'make SYS='; or, set a SYS env. diff --git a/samples/supervision/Makefile b/samples/supervision/Makefile index 9dd201f6a..9396be63d 100644 --- a/samples/supervision/Makefile +++ b/samples/supervision/Makefile @@ -1,12 +1,8 @@ # ---- Display info during parsing phase ---- -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) -$(info ~~~ Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST)))) -ifeq ($(MAKECMDGOALS),) - $(info ~~~ Invoked target: (default)) -else - $(info ~~~ Invoked target: $(MAKECMDGOALS)) +SILENT:=$(findstring s,$(word 1, $(MAKEFLAGS))) +ifneq ($(SILENT),s) + $(info Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST))) $(MAKECMDGOALS)) endif -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) # Run 'make SYS='; or, set a SYS env. diff --git a/samples/sym1/Makefile b/samples/sym1/Makefile index e81cc7c33..8abcfb5aa 100644 --- a/samples/sym1/Makefile +++ b/samples/sym1/Makefile @@ -1,12 +1,8 @@ # ---- Display info during parsing phase ---- -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) -$(info ~~~ Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST)))) -ifeq ($(MAKECMDGOALS),) - $(info ~~~ Invoked target: (default)) -else - $(info ~~~ Invoked target: $(MAKECMDGOALS)) +SILENT:=$(findstring s,$(word 1, $(MAKEFLAGS))) +ifneq ($(SILENT),s) + $(info Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST))) $(MAKECMDGOALS)) endif -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) # Run 'make SYS='; or, set a SYS env. diff --git a/samples/tutorial/Makefile b/samples/tutorial/Makefile index eeb37f72d..7b3286e27 100644 --- a/samples/tutorial/Makefile +++ b/samples/tutorial/Makefile @@ -1,12 +1,8 @@ # ---- Display info during parsing phase ---- -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) -$(info ~~~ Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST)))) -ifeq ($(MAKECMDGOALS),) - $(info ~~~ Invoked target: (default)) -else - $(info ~~~ Invoked target: $(MAKECMDGOALS)) +SILENT:=$(findstring s,$(word 1, $(MAKEFLAGS))) +ifneq ($(SILENT),s) + $(info Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST))) $(MAKECMDGOALS)) endif -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) # Run 'make SYS='; or, set a SYS env. diff --git a/src/Makefile b/src/Makefile index 99caf7450..085a50f9d 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,12 +1,8 @@ # ---- Display info during parsing phase ---- -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) -$(info ~~~ Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST)))) -ifeq ($(MAKECMDGOALS),) - $(info ~~~ Invoked target: (default)) -else - $(info ~~~ Invoked target: $(MAKECMDGOALS)) +SILENT:=$(findstring s,$(word 1, $(MAKEFLAGS))) +ifneq ($(SILENT),s) + $(info Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST))) $(MAKECMDGOALS)) endif -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) ifneq ($(shell echo),) CMD_EXE = 1 diff --git a/targettest/Makefile b/targettest/Makefile index 19d141a12..56b5df446 100644 --- a/targettest/Makefile +++ b/targettest/Makefile @@ -1,12 +1,8 @@ # ---- Display info during parsing phase ---- -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) -$(info ~~~ Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST)))) -ifeq ($(MAKECMDGOALS),) - $(info ~~~ Invoked target: (default)) -else - $(info ~~~ Invoked target: $(MAKECMDGOALS)) +SILENT:=$(findstring s,$(word 1, $(MAKEFLAGS))) +ifneq ($(SILENT),s) + $(info Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST))) $(MAKECMDGOALS)) endif -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) # # Makefile for cc65 testcode diff --git a/targettest/accelerator/Makefile b/targettest/accelerator/Makefile index 2cc67d4fe..6e710d010 100644 --- a/targettest/accelerator/Makefile +++ b/targettest/accelerator/Makefile @@ -1,12 +1,8 @@ # ---- Display info during parsing phase ---- -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) -$(info ~~~ Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST)))) -ifeq ($(MAKECMDGOALS),) - $(info ~~~ Invoked target: (default)) -else - $(info ~~~ Invoked target: $(MAKECMDGOALS)) +SILENT:=$(findstring s,$(word 1, $(MAKEFLAGS))) +ifneq ($(SILENT),s) + $(info Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST))) $(MAKECMDGOALS)) endif -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) # Run 'make SYS='; or, set a SYS env. # var. to build for another target system. diff --git a/targettest/atari/Makefile b/targettest/atari/Makefile index 2f1856ffd..0e376e9bc 100644 --- a/targettest/atari/Makefile +++ b/targettest/atari/Makefile @@ -1,12 +1,8 @@ # ---- Display info during parsing phase ---- -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) -$(info ~~~ Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST)))) -ifeq ($(MAKECMDGOALS),) - $(info ~~~ Invoked target: (default)) -else - $(info ~~~ Invoked target: $(MAKECMDGOALS)) +SILENT:=$(findstring s,$(word 1, $(MAKEFLAGS))) +ifneq ($(SILENT),s) + $(info Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST))) $(MAKECMDGOALS)) endif -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) # Run 'make SYS='; or, set a SYS env. diff --git a/targettest/cbm/Makefile b/targettest/cbm/Makefile index 8944d72c6..ebe00198f 100644 --- a/targettest/cbm/Makefile +++ b/targettest/cbm/Makefile @@ -1,12 +1,8 @@ # ---- Display info during parsing phase ---- -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) -$(info ~~~ Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST)))) -ifeq ($(MAKECMDGOALS),) - $(info ~~~ Invoked target: (default)) -else - $(info ~~~ Invoked target: $(MAKECMDGOALS)) +SILENT:=$(findstring s,$(word 1, $(MAKEFLAGS))) +ifneq ($(SILENT),s) + $(info Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST))) $(MAKECMDGOALS)) endif -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) # Run 'make SYS='; or, set a SYS env. # var. to build for another target system. diff --git a/targettest/gamate/Makefile b/targettest/gamate/Makefile index 674ccf85f..f03c2b064 100644 --- a/targettest/gamate/Makefile +++ b/targettest/gamate/Makefile @@ -1,12 +1,8 @@ # ---- Display info during parsing phase ---- -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) -$(info ~~~ Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST)))) -ifeq ($(MAKECMDGOALS),) - $(info ~~~ Invoked target: (default)) -else - $(info ~~~ Invoked target: $(MAKECMDGOALS)) +SILENT:=$(findstring s,$(word 1, $(MAKEFLAGS))) +ifneq ($(SILENT),s) + $(info Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST))) $(MAKECMDGOALS)) endif -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) # Run 'make SYS='; or, set a SYS env. diff --git a/targettest/pce/Makefile b/targettest/pce/Makefile index 9a97027f3..549720a40 100644 --- a/targettest/pce/Makefile +++ b/targettest/pce/Makefile @@ -1,12 +1,8 @@ # ---- Display info during parsing phase ---- -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) -$(info ~~~ Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST)))) -ifeq ($(MAKECMDGOALS),) - $(info ~~~ Invoked target: (default)) -else - $(info ~~~ Invoked target: $(MAKECMDGOALS)) +SILENT:=$(findstring s,$(word 1, $(MAKEFLAGS))) +ifneq ($(SILENT),s) + $(info Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST))) $(MAKECMDGOALS)) endif -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) # Run 'make SYS='; or, set a SYS env. diff --git a/test/Makefile b/test/Makefile index 21d0623e2..94bc7e5ea 100644 --- a/test/Makefile +++ b/test/Makefile @@ -1,12 +1,8 @@ # ---- Display info during parsing phase ---- -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) -$(info ~~~ Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST)))) -ifeq ($(MAKECMDGOALS),) - $(info ~~~ Invoked target: (default)) -else - $(info ~~~ Invoked target: $(MAKECMDGOALS)) +SILENT:=$(findstring s,$(word 1, $(MAKEFLAGS))) +ifneq ($(SILENT),s) + $(info Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST))) $(MAKECMDGOALS)) endif -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) # top-level Makefile for the regression tests diff --git a/test/asm/Makefile b/test/asm/Makefile index c69bbb725..2d5ba764e 100644 --- a/test/asm/Makefile +++ b/test/asm/Makefile @@ -1,12 +1,8 @@ # ---- Display info during parsing phase ---- -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) -$(info ~~~ Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST)))) -ifeq ($(MAKECMDGOALS),) - $(info ~~~ Invoked target: (default)) -else - $(info ~~~ Invoked target: $(MAKECMDGOALS)) +SILENT:=$(findstring s,$(word 1, $(MAKEFLAGS))) +ifneq ($(SILENT),s) + $(info Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST))) $(MAKECMDGOALS)) endif -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) # top-level Makefile for the regression tests diff --git a/test/asm/cpudetect/Makefile b/test/asm/cpudetect/Makefile index cd755bd13..fde19b17b 100644 --- a/test/asm/cpudetect/Makefile +++ b/test/asm/cpudetect/Makefile @@ -1,12 +1,8 @@ # ---- Display info during parsing phase ---- -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) -$(info ~~~ Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST)))) -ifeq ($(MAKECMDGOALS),) - $(info ~~~ Invoked target: (default)) -else - $(info ~~~ Invoked target: $(MAKECMDGOALS)) +SILENT:=$(findstring s,$(word 1, $(MAKEFLAGS))) +ifneq ($(SILENT),s) + $(info Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST))) $(MAKECMDGOALS)) endif -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) # Makefile for the assembler regression tests diff --git a/test/asm/err/Makefile b/test/asm/err/Makefile index 0f37a2b9a..c1a8285e4 100644 --- a/test/asm/err/Makefile +++ b/test/asm/err/Makefile @@ -1,12 +1,8 @@ # ---- Display info during parsing phase ---- -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) -$(info ~~~ Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST)))) -ifeq ($(MAKECMDGOALS),) - $(info ~~~ Invoked target: (default)) -else - $(info ~~~ Invoked target: $(MAKECMDGOALS)) +SILENT:=$(findstring s,$(word 1, $(MAKEFLAGS))) +ifneq ($(SILENT),s) + $(info Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST))) $(MAKECMDGOALS)) endif -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) # Makefile for the tests that MUST NOT compile diff --git a/test/asm/listing/Makefile b/test/asm/listing/Makefile index 88940c769..4321d3b95 100644 --- a/test/asm/listing/Makefile +++ b/test/asm/listing/Makefile @@ -1,12 +1,8 @@ # ---- Display info during parsing phase ---- -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) -$(info ~~~ Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST)))) -ifeq ($(MAKECMDGOALS),) - $(info ~~~ Invoked target: (default)) -else - $(info ~~~ Invoked target: $(MAKECMDGOALS)) +SILENT:=$(findstring s,$(word 1, $(MAKEFLAGS))) +ifneq ($(SILENT),s) + $(info Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST))) $(MAKECMDGOALS)) endif -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) # Makefile for the assembler regression tests diff --git a/test/asm/misc/Makefile b/test/asm/misc/Makefile index 3605504b1..1b2305cda 100644 --- a/test/asm/misc/Makefile +++ b/test/asm/misc/Makefile @@ -1,12 +1,8 @@ # ---- Display info during parsing phase ---- -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) -$(info ~~~ Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST)))) -ifeq ($(MAKECMDGOALS),) - $(info ~~~ Invoked target: (default)) -else - $(info ~~~ Invoked target: $(MAKECMDGOALS)) +SILENT:=$(findstring s,$(word 1, $(MAKEFLAGS))) +ifneq ($(SILENT),s) + $(info Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST))) $(MAKECMDGOALS)) endif -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) # Makefile for the remaining asm tests that need special care in one way or another diff --git a/test/asm/opcodes/Makefile b/test/asm/opcodes/Makefile index d0115ae05..70dd41c06 100644 --- a/test/asm/opcodes/Makefile +++ b/test/asm/opcodes/Makefile @@ -1,12 +1,8 @@ # ---- Display info during parsing phase ---- -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) -$(info ~~~ Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST)))) -ifeq ($(MAKECMDGOALS),) - $(info ~~~ Invoked target: (default)) -else - $(info ~~~ Invoked target: $(MAKECMDGOALS)) +SILENT:=$(findstring s,$(word 1, $(MAKEFLAGS))) +ifneq ($(SILENT),s) + $(info Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST))) $(MAKECMDGOALS)) endif -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) # Makefile for the assembler regression tests diff --git a/test/asm/val/Makefile b/test/asm/val/Makefile index 34111cfed..08c000f95 100644 --- a/test/asm/val/Makefile +++ b/test/asm/val/Makefile @@ -1,12 +1,8 @@ # ---- Display info during parsing phase ---- -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) -$(info ~~~ Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST)))) -ifeq ($(MAKECMDGOALS),) - $(info ~~~ Invoked target: (default)) -else - $(info ~~~ Invoked target: $(MAKECMDGOALS)) +SILENT:=$(findstring s,$(word 1, $(MAKEFLAGS))) +ifneq ($(SILENT),s) + $(info Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST))) $(MAKECMDGOALS)) endif -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) # Makefile for the regression tests that return an error code on failure diff --git a/test/dasm/Makefile b/test/dasm/Makefile index 240503191..29e97b9c1 100644 --- a/test/dasm/Makefile +++ b/test/dasm/Makefile @@ -1,12 +1,8 @@ # ---- Display info during parsing phase ---- -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) -$(info ~~~ Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST)))) -ifeq ($(MAKECMDGOALS),) - $(info ~~~ Invoked target: (default)) -else - $(info ~~~ Invoked target: $(MAKECMDGOALS)) +SILENT:=$(findstring s,$(word 1, $(MAKEFLAGS))) +ifneq ($(SILENT),s) + $(info Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST))) $(MAKECMDGOALS)) endif -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) # Makefile for the disassembler regression tests diff --git a/test/err/Makefile b/test/err/Makefile index 238e57e35..a0cdc22ae 100644 --- a/test/err/Makefile +++ b/test/err/Makefile @@ -1,12 +1,8 @@ # ---- Display info during parsing phase ---- -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) -$(info ~~~ Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST)))) -ifeq ($(MAKECMDGOALS),) - $(info ~~~ Invoked target: (default)) -else - $(info ~~~ Invoked target: $(MAKECMDGOALS)) +SILENT:=$(findstring s,$(word 1, $(MAKEFLAGS))) +ifneq ($(SILENT),s) + $(info Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST))) $(MAKECMDGOALS)) endif -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) # Makefile for the tests that MUST NOT compile diff --git a/test/misc/Makefile b/test/misc/Makefile index dcda6e7b4..989e8f83a 100644 --- a/test/misc/Makefile +++ b/test/misc/Makefile @@ -1,12 +1,8 @@ # ---- Display info during parsing phase ---- -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) -$(info ~~~ Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST)))) -ifeq ($(MAKECMDGOALS),) - $(info ~~~ Invoked target: (default)) -else - $(info ~~~ Invoked target: $(MAKECMDGOALS)) +SILENT:=$(findstring s,$(word 1, $(MAKEFLAGS))) +ifneq ($(SILENT),s) + $(info Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST))) $(MAKECMDGOALS)) endif -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) # Makefile for the remaining tests that need special care in one way or another diff --git a/test/ref/Makefile b/test/ref/Makefile index 213512640..2dadf5bcc 100644 --- a/test/ref/Makefile +++ b/test/ref/Makefile @@ -1,12 +1,8 @@ # ---- Display info during parsing phase ---- -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) -$(info ~~~ Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST)))) -ifeq ($(MAKECMDGOALS),) - $(info ~~~ Invoked target: (default)) -else - $(info ~~~ Invoked target: $(MAKECMDGOALS)) +SILENT:=$(findstring s,$(word 1, $(MAKEFLAGS))) +ifneq ($(SILENT),s) + $(info Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST))) $(MAKECMDGOALS)) endif -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) # Makefile for the regression tests that generate output which has to be # compared with reference output diff --git a/test/standard/Makefile b/test/standard/Makefile index d710ab443..e359fa975 100644 --- a/test/standard/Makefile +++ b/test/standard/Makefile @@ -1,12 +1,8 @@ # ---- Display info during parsing phase ---- -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) -$(info ~~~ Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST)))) -ifeq ($(MAKECMDGOALS),) - $(info ~~~ Invoked target: (default)) -else - $(info ~~~ Invoked target: $(MAKECMDGOALS)) +SILENT:=$(findstring s,$(word 1, $(MAKEFLAGS))) +ifneq ($(SILENT),s) + $(info Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST))) $(MAKECMDGOALS)) endif -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) # Makefile for the regression tests that return an error code on failure diff --git a/test/standard_err/Makefile b/test/standard_err/Makefile index c99108cca..f554d33eb 100644 --- a/test/standard_err/Makefile +++ b/test/standard_err/Makefile @@ -1,12 +1,8 @@ # ---- Display info during parsing phase ---- -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) -$(info ~~~ Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST)))) -ifeq ($(MAKECMDGOALS),) - $(info ~~~ Invoked target: (default)) -else - $(info ~~~ Invoked target: $(MAKECMDGOALS)) +SILENT:=$(findstring s,$(word 1, $(MAKEFLAGS))) +ifneq ($(SILENT),s) + $(info Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST))) $(MAKECMDGOALS)) endif -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) # Makefile for the tests that MUST NOT compile diff --git a/test/todo/Makefile b/test/todo/Makefile index cb341ff80..ec14cf8d4 100644 --- a/test/todo/Makefile +++ b/test/todo/Makefile @@ -1,12 +1,8 @@ # ---- Display info during parsing phase ---- -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) -$(info ~~~ Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST)))) -ifeq ($(MAKECMDGOALS),) - $(info ~~~ Invoked target: (default)) -else - $(info ~~~ Invoked target: $(MAKECMDGOALS)) +SILENT:=$(findstring s,$(word 1, $(MAKEFLAGS))) +ifneq ($(SILENT),s) + $(info Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST))) $(MAKECMDGOALS)) endif -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) # Makefile for the currently failing regression tests that return an error code on failure diff --git a/test/val/Makefile b/test/val/Makefile index 75a0755e8..68882971d 100644 --- a/test/val/Makefile +++ b/test/val/Makefile @@ -1,12 +1,8 @@ # ---- Display info during parsing phase ---- -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) -$(info ~~~ Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST)))) -ifeq ($(MAKECMDGOALS),) - $(info ~~~ Invoked target: (default)) -else - $(info ~~~ Invoked target: $(MAKECMDGOALS)) +SILENT:=$(findstring s,$(word 1, $(MAKEFLAGS))) +ifneq ($(SILENT),s) + $(info Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST))) $(MAKECMDGOALS)) endif -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) # Makefile for the regression tests that return an error code on failure diff --git a/util/Makefile b/util/Makefile index b4c1d900c..337320d36 100644 --- a/util/Makefile +++ b/util/Makefile @@ -1,12 +1,8 @@ # ---- Display info during parsing phase ---- -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) -$(info ~~~ Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST)))) -ifeq ($(MAKECMDGOALS),) - $(info ~~~ Invoked target: (default)) -else - $(info ~~~ Invoked target: $(MAKECMDGOALS)) +SILENT:=$(findstring s,$(word 1, $(MAKEFLAGS))) +ifneq ($(SILENT),s) + $(info Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST))) $(MAKECMDGOALS)) endif -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) .PHONY: atari gamate zlib diff --git a/util/atari/Makefile b/util/atari/Makefile index 3fbde98c2..aa3163ec4 100644 --- a/util/atari/Makefile +++ b/util/atari/Makefile @@ -1,12 +1,8 @@ # ---- Display info during parsing phase ---- -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) -$(info ~~~ Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST)))) -ifeq ($(MAKECMDGOALS),) - $(info ~~~ Invoked target: (default)) -else - $(info ~~~ Invoked target: $(MAKECMDGOALS)) +SILENT:=$(findstring s,$(word 1, $(MAKEFLAGS))) +ifneq ($(SILENT),s) + $(info Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST))) $(MAKECMDGOALS)) endif -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) CC = $(CROSS_COMPILE)gcc diff --git a/util/gamate/Makefile b/util/gamate/Makefile index cbd6c68d9..d9b4bbd42 100644 --- a/util/gamate/Makefile +++ b/util/gamate/Makefile @@ -1,12 +1,8 @@ # ---- Display info during parsing phase ---- -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) -$(info ~~~ Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST)))) -ifeq ($(MAKECMDGOALS),) - $(info ~~~ Invoked target: (default)) -else - $(info ~~~ Invoked target: $(MAKECMDGOALS)) +SILENT:=$(findstring s,$(word 1, $(MAKEFLAGS))) +ifneq ($(SILENT),s) + $(info Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST))) $(MAKECMDGOALS)) endif -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) CC = $(CROSS_COMPILE)gcc diff --git a/util/zlib/Makefile b/util/zlib/Makefile index b0f274539..8068ea120 100644 --- a/util/zlib/Makefile +++ b/util/zlib/Makefile @@ -1,12 +1,8 @@ # ---- Display info during parsing phase ---- -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) -$(info ~~~ Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST)))) -ifeq ($(MAKECMDGOALS),) - $(info ~~~ Invoked target: (default)) -else - $(info ~~~ Invoked target: $(MAKECMDGOALS)) +SILENT:=$(findstring s,$(word 1, $(MAKEFLAGS))) +ifneq ($(SILENT),s) + $(info Using Makefile: $(realpath $(firstword $(MAKEFILE_LIST))) $(MAKECMDGOALS)) endif -$(info ~~~~~~~~~~~~~~~~~~~~~~~~~~~~) CC = $(CROSS_COMPILE)gcc