Browse Source

make: have `update-mocks` actually be quiet

Shhhh
nifty/pset-pre
niftynei 5 years ago
committed by Rusty Russell
parent
commit
47c701cbe6
  1. 4
      Makefile

4
Makefile

@ -10,8 +10,10 @@ endif
# --quiet / -s means quiet, dammit! # --quiet / -s means quiet, dammit!
ifeq ($(findstring s,$(word 1, $(MAKEFLAGS))),s) ifeq ($(findstring s,$(word 1, $(MAKEFLAGS))),s)
ECHO := : ECHO := :
SUPPRESS_OUTPUT := > /dev/null
else else
ECHO := echo ECHO := echo
SUPPRESS_OUTPUT :=
endif endif
DISTRO=$(shell lsb_release -is 2>/dev/null || echo unknown)-$(shell lsb_release -rs 2>/dev/null || echo unknown) DISTRO=$(shell lsb_release -is 2>/dev/null || echo unknown)-$(shell lsb_release -rs 2>/dev/null || echo unknown)
@ -471,7 +473,7 @@ clean:
update-mocks: $(ALL_GEN_HEADERS) update-mocks: $(ALL_GEN_HEADERS)
update-mocks/%: % update-mocks/%: %
@MAKE=$(MAKE) tools/update-mocks.sh "$*" @MAKE=$(MAKE) tools/update-mocks.sh "$*" $(SUPPRESS_OUTPUT)
unittest/%: % unittest/%: %
$(VG) $(VG_TEST_ARGS) $* > /dev/null $(VG) $(VG_TEST_ARGS) $* > /dev/null

Loading…
Cancel
Save