"silent" build with make V=0 (default)

verbose build is enabled by
$ make V=1
This commit is contained in:
Thomas Bernard 2019-02-08 11:01:31 +01:00
parent c3b8d1ab65
commit 063ece9d5b
No known key found for this signature in database
GPG Key ID: 0FF11B67A5C0863C

View File

@ -22,6 +22,9 @@
# You should have received a copy of the GNU General Public License
# along with Grafx2; if not, see <http://www.gnu.org/licenses/>
# make V=1 to enable verbose building
V ?= 0
# Overridable defaults
PREFIX ?= /usr/local
exec_prefix = $(PREFIX)
@ -782,6 +785,12 @@ FONT_FILES = $(addprefix ../share/grafx2/fonts/,$(FONTS))
DOC_FILES = $(wildcard ../doc/*.txt)
DOC_FILESRTF = ../doc/quickstart.rtf
# for silent/verbose building
ACTUAL_CC := $(CC)
CC_0 = @echo "$(if $(findstring .o,$@),Compiling $<,Linking $@)" ; $(ACTUAL_CC)
CC_1 = $(ACTUAL_CC)
CC = $(CC_$(V))
ifeq ($(PLATFORM),Darwin)
all : $(MACAPPEXE)
@ -1050,6 +1059,6 @@ htmldoc: $(GENERATEDOCBIN)
$(GENERATEDOCBIN) ../doc/html
print-%:
@echo $* = $($*)
@echo "$* = $($*)"
-include Makefile.dep