From: Diego Elio Pettenò Date: Mon, 17 Sep 2012 15:24:27 +0000 (-0700) Subject: Add a silent mode for make fetch. X-Git-Tag: hwids-20120916 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d494bd493a3b24de3ed0b9f72b1a0d50a24bd11f;p=oweals%2Fhwids.git Add a silent mode for make fetch. --- 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)