Add a silent mode for make fetch.
[oweals/hwids.git] / Makefile
1 # can be replaced with `wget -q -O -` if you want
2 ifeq "$(V)" "0"
3   HTTPCAT = curl -s
4   STATUS = git status -s
5   Q=@
6 else
7   HTTPCAT = curl
8   STATUS = git status
9   Q=
10 endif
11
12 fetch:
13         $(Q)$(HTTPCAT) http://pci-ids.ucw.cz/v2.2/pci.ids.bz2 | bzcat > pci.ids
14         $(Q)$(HTTPCAT) http://www.linux-usb.org/usb.ids.bz2 | bzcat > usb.ids
15         $(Q)$(STATUS)
16
17 PV ?= $(shell date +%Y%m%d)
18 P = hwids-$(PV)
19
20 tag:
21         git tag $(P)