Re: Weird :update targets

Adriaan de Groot <adridg-FlD2LfDziEhmR6Xm/[email protected]>
Newsgroups gmane.comp.tools.aap.devel
Message-ID <[email protected]>
On Friday 10 October 2003 11:49, you wrote:
> Adriaan de Groot wrote:
> > Well, putting it (this rule text) in a module doesn't have the desired
> > effect; the rule is not used. If I add it to my recipe then it's fine.
>
> Perhaps you need to add the {global} option to :rule?

_duh_. OK, maybe I should read the docs again sometime. The rules in qt.aap 
need to have {global} added, I'll send a patch shortly, along with patches 
for some other little things.

-- 
pub  1024D/FEA2A3FE 2002-06-18 Adriaan de Groot <[email protected]>
            If the door is ajar, can we fill it with door-jamb?
t.diff (text/x-diff, 918 B)
Index: modules/qt.aap
===================================================================
RCS file: /cvsroot/a-a-p/Exec/modules/qt.aap,v
retrieving revision 1.2
diff -u -3 -p -r1.2 qt.aap
--- modules/qt.aap	9 Oct 2003 20:55:06 -0000	1.2
+++ modules/qt.aap	11 Oct 2003 21:01:02 -0000
@@ -33,7 +33,7 @@ qt_includedir = $QTDIR/include
 :action h2moc default
       :sys $moc -o $-target $source
 
-:rule %.moc : %.h
+:rule {global} {sourceexists} %.moc : %.h
       :do h2moc $source
 
 
@@ -69,10 +69,10 @@ qt_includedir = $QTDIR/include
       ui2h `sufreplace("",".h",source)`
       h2moc
 
-:rule {sourceexists} %.cc : %.ui
+:rule {global} {sourceexists} %.cc : %.ui
       :do ui2cpp { target = $(target[0]) } $source
 
-:rule {sourceexists} %.h { filetype=h } : %.ui
+:rule {global} {sourceexists} %.h { filetype=h } : %.ui
       :do ui2h { target = $(target[0]) } $source
-  
+
 # vim: set sw=4 sts=4 tw=79 et :
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.