[Omake] Re: Implicit rules for files in subdirectories

Benjamin Pierce bcpierce at cis.upenn.edu
Wed Jun 7 21:08:44 PDT 2006


Answering my own question... :-)

One way to do what I was asking for is this:

tmpname(x) =
   return (tmp/$(basename $(rootname $(x))).tex)

foreach (x, $(SOURCEFILES))
   println($(tmpname $(x)): $(x) tmp)
   $(tmpname $(x)): $(x) tmp
     $(SRC2TEX) $< > $@

Is this optimal?

      - Benjamin


On Jun 7, 2006, at 11:34 PM, Benjamin Pierce wrote:

> Last question for the day, I promise!
>
> My old GNU makefile has some rules like this:
>
>   tmp/%.tex : %.src $(SRC2TEX) tmp
>   	    $(SRC2TEX) $< > $@
>
> I want to put the targets in a subdirectory so that I don't have to  
> look at them when working in the current directory.  Can this be  
> achieved / approximated with OMake?
>
> Thanks,
>
>     - Benjamin



More information about the Omake mailing list