Skip to content

Commit

Permalink
Improve Makefile printing again
Browse files Browse the repository at this point in the history
- The VDR Makefile might get an extension and define "Q", It is now
  overriden here.
  • Loading branch information
jasmin-j committed May 26, 2017
1 parent 260f2cf commit 33c2c2f
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions global.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# This might be added to VDR main directory in the future

# build mode (0 - non-verbose, 1 - verbose)
VERBOSE ?= 0
VERBOSE ?= 0

# Desplay percentage (0 - no percentage, 1 - print xxx% (not 100% accurate!))
#WITH_PERCENT ?= 0
Expand All @@ -21,18 +21,16 @@ ifeq ($(WITH_PERCENT),1)
ECHO = echo "[$(shell expr " $(shell echo $$((${TARGET_COUNTER} * 100 / ${TOTAL_TARGETS})))" : '.*\(...\)$$')%]"
endif
else
ECHO = echo
ECHO := echo
endif

ifeq ($(VERBOSE),0)
# Have a look to the VDR Makefile hw to use these macros in Plugins.

Q = @
override Q := @
PRETTY_PRINT = @$(ECHO) $(1)
AR_NUL = > /dev/null 2>&1
AR_NUL := > /dev/null 2>&1
else
Q =
PRETTY_PRINT =
AR_NUL =
override Q :=
PRETTY_PRINT :=
AR_NUL :=
endif

0 comments on commit 33c2c2f

Please sign in to comment.