[vox-tech] make question - pattern rule

Peter Jay Salzman vox-tech@lists.lugod.org
Tue, 29 Oct 2002 16:31:08 -0800


begin Mark K. Kim <markslist@cbreak.org> 
> On Tue, 29 Oct 2002, Peter Jay Salzman wrote:
> 
> > I'd like to replace all the "postscript/blah.pdf" rules with a pattern
> > rule, but i'm stuck.  here's what i tried:
> >
> >    %.pdf : %.tex
> >       cd postscript; latex $<; dvips -E
> >
> > i'm not sure what to put after -E.    i'd like to mimic what i have
> > above, but am unsure how to handle changing the suffix of the target
> > name.
> 
> A quick and dirty fix would be:
> 
>    dvips -E `basename $< .tex`.dvi > `basename $@`
 
hey, that's pretty tricky.   good thinking.

> but... there's prolly a $(blah blah) thing similar to $(wildcard blah).

yeah.  there's only so much time i'm going to pour through the info
pages before i begin to request spoonfeeding.  :)

pete