From d494bd493a3b24de3ed0b9f72b1a0d50a24bd11f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Diego=20Elio=20Petten=C3=B2?= Date: Mon, 17 Sep 2012 08:24:27 -0700 Subject: [PATCH] Add a silent mode for make fetch. --- Makefile | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index af9f947..08e8170 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,18 @@ # can be replaced with `wget -q -O -` if you want -HTTPCAT = curl +ifeq "$(V)" "0" + HTTPCAT = curl -s + STATUS = git status -s + Q=@ +else + HTTPCAT = curl + STATUS = git status + Q= +endif fetch: - $(HTTPCAT) http://pci-ids.ucw.cz/v2.2/pci.ids.bz2 | bzcat > pci.ids - $(HTTPCAT) http://www.linux-usb.org/usb.ids.bz2 | bzcat > usb.ids - git status + $(Q)$(HTTPCAT) http://pci-ids.ucw.cz/v2.2/pci.ids.bz2 | bzcat > pci.ids + $(Q)$(HTTPCAT) http://www.linux-usb.org/usb.ids.bz2 | bzcat > usb.ids + $(Q)$(STATUS) PV ?= $(shell date +%Y%m%d) P = hwids-$(PV) -- 2.25.1