From d8482fbd5773d3260f4f95f8da94297e8152c1cf Mon Sep 17 00:00:00 2001 From: rofl0r Date: Mon, 25 Apr 2022 14:58:38 +0000 Subject: [PATCH] build: allow the user to specify make V=1 for verbose build it's often required to see the full commandline when things go wrong. the standard way for Makefile-only based buildsystems and autoconf is to pass V=1 to make. --- src/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index c8028204b..c37af1d32 100644 --- a/src/Makefile +++ b/src/Makefile @@ -2,6 +2,12 @@ ifneq ($(shell echo),) CMD_EXE = 1 endif +ifneq ($(V),1) + Q=@ +else + Q= +endif + PROGS = ar65 \ ca65 \ cc65 \ @@ -147,7 +153,7 @@ endef # PROG_template ../wrk/%.o: %.c @echo $< - @$(CC) -c $(CFLAGS) -o $@ $< + $(Q)$(CC) -c $(CFLAGS) -o $@ $< ../bin: @$(call MKDIR,$@)