From 0b0972bd356bcdad492b26f247960c12fcb0c7fc Mon Sep 17 00:00:00 2001 From: Dan McDonald Date: Wed, 18 Mar 2015 15:59:15 -0400 Subject: [PATCH] 5727 "make update" target for hwdata Reviewed by: Josef 'Jeff' Sipek Approved by: Gordon Ross --- usr/src/cmd/hwdata/Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/usr/src/cmd/hwdata/Makefile b/usr/src/cmd/hwdata/Makefile index 3458b298f4..f4cc584df3 100644 --- a/usr/src/cmd/hwdata/Makefile +++ b/usr/src/cmd/hwdata/Makefile @@ -21,6 +21,7 @@ # # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. +# Copyright 2015, OmniTI Computer Consulting, Inc. All rights reserved. # include ../Makefile.cmd @@ -47,6 +48,26 @@ $(HWDATADIR)/%: % lint check clean clobber: +# The "update" target family allows a simple pull-from-the-source update. +# One can then use revision-control diffs to see what actually changed. +update: usb.update pci.update + +# URLs for PCI IDs and USB IDs +PCIURL=http://pci-ids.ucw.cz/v2.2/pci.ids +USBURL=http://www.linux-usb.org/usb.ids + +# These could move into Makefile.master +URL_FETCH=wget +URL_FETCHARGS= + +pci.update: + $(RM) pci.ids + $(URL_FETCH) $(URL_FETCHARGS) $(PCIURL) + +usb.update: + $(RM) usb.ids + $(URL_FETCH) $(URL_FETCHARGS) $(USBURL) + FRC: include ../Makefile.targ -- 2.11.4.GIT