Hack around a problem with sys/tools/usbdevs2h.awk that generates

both usbdevs.h and usbdevs_data.h.  (The latter was not cleaned.)
This commit is contained in:
Ruslan Ermilov 2004-10-24 08:26:48 +00:00
parent 201cef5702
commit 743d0f6640
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=136855
2 changed files with 5 additions and 1 deletions

View File

@ -54,7 +54,7 @@ usbdevs.h optional usb \
dependency "$S/tools/usbdevs2h.awk $S/dev/usb/usbdevs" \
compile-with "${AWK} -f $S/tools/usbdevs2h.awk $S/dev/usb/usbdevs" \
no-obj no-implicit-rule before-depend \
clean "usbdevs.h"
clean "usbdevs.h usbdevs_data.h"
kern/device_if.m standard
kern/bus_if.m standard
kern/clock_if.m optional genclock

View File

@ -333,6 +333,10 @@ vnode_if.${_ext}: @/tools/vnode_if.awk @/kern/vnode_if.src
.for _i in mii pccard usb
.if ${SRCS:M${_i}devs.h} != ""
CLEANFILES+= ${_i}devs.h
_i= ${_i:Musb}
.if !empty(_i)
CLEANFILES+= ${_i}devs_data.h
.endif
.if !exists(@)
${_i}devs.h: @
.endif