"silent" build with make V=0 (default)
verbose build is enabled by $ make V=1
This commit is contained in:
parent
c3b8d1ab65
commit
063ece9d5b
11
src/Makefile
11
src/Makefile
@ -22,6 +22,9 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with Grafx2; if not, see <http://www.gnu.org/licenses/>
|
# along with Grafx2; if not, see <http://www.gnu.org/licenses/>
|
||||||
|
|
||||||
|
# make V=1 to enable verbose building
|
||||||
|
V ?= 0
|
||||||
|
|
||||||
# Overridable defaults
|
# Overridable defaults
|
||||||
PREFIX ?= /usr/local
|
PREFIX ?= /usr/local
|
||||||
exec_prefix = $(PREFIX)
|
exec_prefix = $(PREFIX)
|
||||||
@ -782,6 +785,12 @@ FONT_FILES = $(addprefix ../share/grafx2/fonts/,$(FONTS))
|
|||||||
DOC_FILES = $(wildcard ../doc/*.txt)
|
DOC_FILES = $(wildcard ../doc/*.txt)
|
||||||
DOC_FILESRTF = ../doc/quickstart.rtf
|
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)
|
ifeq ($(PLATFORM),Darwin)
|
||||||
all : $(MACAPPEXE)
|
all : $(MACAPPEXE)
|
||||||
@ -1050,6 +1059,6 @@ htmldoc: $(GENERATEDOCBIN)
|
|||||||
$(GENERATEDOCBIN) ../doc/html
|
$(GENERATEDOCBIN) ../doc/html
|
||||||
|
|
||||||
print-%:
|
print-%:
|
||||||
@echo $* = $($*)
|
@echo "$* = $($*)"
|
||||||
|
|
||||||
-include Makefile.dep
|
-include Makefile.dep
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user