Re: how to write a general rule

"Lars Ivar Igesund" <[email protected]>
Newsgroups gmane.comp.tools.aap.user
Message-ID <055e01c3a44d$7a2332b0$0200000a@mesmer>
----- Original Message ----- 
From: "Joerg Beyer" <j.beyer-S0/[email protected]>
To: <[email protected]>
Sent: Thursday, November 06, 2003 10:08 AM
Subject: [A-a-p-user] how to write a general rule


> Dear Listreader,
> 
> I am not sure, how to write a generell aap-rule. I have a
> inputfile x.in that sould be transformed to x.out. For the
> sake of simplicity let's assume that the tranformation is
> a sed step.
> 
> So I have this aap rule:
> 
> ------------------
> x.out : x.in
>         :sys sed -e "s,e,X,g" <$source  >$target
> ------------------
> 
> This works fine. Now my question: how do I generalize
> this rule for file x.in to any file that ends with a ".in"?
>

I'm not really an expert, but shouldn't this work?

:rule %.out : %.in
        :sys sed -e "s,e,X,g" <$source >$target

http://www.a-a-p.org/exec/ref-commands.html#cmd-rule

Lars Ivar Igesund


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
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.