Factor out the object system from new-bus so that it can be used by
[dragonfly.git] / sys / bus / usb / Makefile.usbdevs
1 # The files usbdevs.h and usbdevs_data.h are generated from usbdevs
2 #
3 # $DragonFly: src/sys/bus/usb/Attic/Makefile.usbdevs,v 1.1 2003/08/22 23:51:55 dillon Exp $
4
5 AWK=    awk
6 UNAME=  uname
7 RM=     rm
8
9 # The targets are always remade.
10
11 .PHONY= regen
12
13 all:
14         @echo "Only the 'regen' target may be used to regenerate the"
15         @echo "usbdevs.h and usbdevs_data.h header files"
16
17 regen:  usbdevs devlist2h.awk
18         /bin/rm -f ${.CURDIR}/usbdevs.h ${.CURDIR}/usbdevs_data.h
19         cd ${.CURDIR} && ${AWK} -v type=USB -v os=`${UNAME} -s` -f devlist2h.awk usbdevs
20