loader: ptable_close should check for NULL argument
[unleashed.git] / share / hwdata / Makefile
bloba0acdd16d599f3ee5ec4e83f30545784921d0a96
1 HWDATADIR= ${SHAREDIR}/hwdata
3 FILES= pci.ids \
4 usb.ids
6 # URLs for PCI IDs and USB IDs
7 PCIURL=http://pci-ids.ucw.cz/v2.2/pci.ids
8 USBURL=http://www.linux-usb.org/usb.ids
10 WGET=wget
12 all:
14 proginstall:
15 .for f in ${FILES}
16 [ -d ${DESTDIR}${HWDATADIR} ] || \
17 ${INSTALL} -d ${PROG_INSTALL_OWN} -m 755 ${DESTDIR}${HWDATADIR}
18 ${INSTALL} ${COPY} ${PROG_INSTALL_OWN} -m 444 \
19 ${f} ${DESTDIR}${HWDATADIR}
20 .endfor
22 update:
23 $(WGET) -O pci.ids $(PCIURL)
24 $(WGET) -O usb.ids $(USBURL)
25 sed -e '/^$$/,$$ d' < pci.ids > THIRDPARTYLICENSE.pciids
26 cat THIRDPARTYLICENSE.pciids.tmpl >> THIRDPARTYLICENSE.pciids
28 .PHONY: update
30 .include <prog.mk>