USBWebcamHeaderGen rule: Add grist to both header and sources. Simplifies the

invocation and fixes the dependency problem (missing grist on the sources)
that caused the headers not to be regenerated when the sources changed.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36878 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2010-05-20 19:01:18 +00:00
parent 20a37b8525
commit 5023986b41
@@ -53,11 +53,13 @@ sensorsSources =
tas5130d1b.cpp tas5130d1b.cpp
; ;
## how to build header files from sources to include the list of built-in addons. ## how to build header files from sources to include the list of built-in addons
# but it doesn't seem to work for some reason...
rule USBWebcamHeaderGen header : macro : sources rule USBWebcamHeaderGen header : macro : sources
{ {
header = [ FGristFiles $(header) ] ;
sources = [ FGristFiles $(sources) ] ;
SEARCH on $(sources) = $(SEARCH_SOURCE) ; SEARCH on $(sources) = $(SEARCH_SOURCE) ;
Depends $(header) : $(sources) ; Depends $(header) : $(sources) ;
@@ -72,11 +74,10 @@ actions USBWebcamHeaderGen1
grep -h $(GREP_DEFINE) $(2) > $(1) ; grep -h $(GREP_DEFINE) $(2) > $(1) ;
} }
USBWebcamHeaderGen [ FGristFiles CamInternalAddons.h ] USBWebcamHeaderGen CamInternalAddons.h : B_WEBCAM_MKINTFUNC : $(addonSources) ;
: B_WEBCAM_MKINTFUNC : $(addonSources) ; USBWebcamHeaderGen CamInternalSensors.h : B_WEBCAM_DECLARE_SENSOR
USBWebcamHeaderGen [ FGristFiles CamInternalSensors.h ] : $(sensorsSources) ;
: B_WEBCAM_DECLARE_SENSOR : $(sensorsSources) ; USBWebcamHeaderGen CamInternalColorSpaceTransforms.h
USBWebcamHeaderGen [ FGristFiles CamInternalColorSpaceTransforms.h ]
: B_WEBCAM_DECLARE_CSTRANSFORM : $(csTransformsSources) ; : B_WEBCAM_DECLARE_CSTRANSFORM : $(csTransformsSources) ;
Addon usb_webcam.media_addon : Addon usb_webcam.media_addon :