Re: make question

2008-12-22 Thread Dov Grobgeld
Seeing the make complexity makes me happy that I abandoned make a few years ago in favor of scons in which you have a real language (python) to express your dependencies: import glob import re for f in glob.glob("*.eps") : Command(re.sub(".eps","_fixed.eps", name), name,

Re: make question

2008-12-18 Thread Oleg Goldshmidt
"Jason Friedman" writes: > Hi all, > > I have had this make question that has been bugging me for a long time. > > I want to fix some eps files using eps2eps. This is the makefile I use: > > figure1_fixed.eps: figure1.eps > [tab] eps2eps $< $@ > > (replace [tab] with the tab character) > > This w

Re: make question

2008-12-17 Thread Valery Reznic
> Yikes, why would you come to that? > > > Additional to second line "|| { rm -f $@ > ...}" ensure that in case of > > some failure no target file remain. So wrong / > incomplete file can't > > be occassionly used. > > Here's a similar version that is > functionality-equivalent: > > all: figur

Re: make question

2008-12-17 Thread Tzafrir Cohen
On Wed, Dec 17, 2008 at 01:44:12PM -0800, Valery Reznic wrote: > > > > --- On Wed, 12/17/08, Jason Friedman wrote: > > > From: Jason Friedman > > Subject: make question > > To: linux-il@cs.huji.ac.il > > Date: Wednesday, December 17, 2008, 10:21 PM > > Hi all, > > > > I have had this make qu

Re: make question

2008-12-17 Thread Valery Reznic
--- On Wed, 12/17/08, Jason Friedman wrote: > From: Jason Friedman > Subject: make question > To: linux-il@cs.huji.ac.il > Date: Wednesday, December 17, 2008, 10:21 PM > Hi all, > > I have had this make question that has been bugging me for > a long time. > > I want to fix some eps files us

Re: make question

2008-12-17 Thread Shlomi Fish
On Wednesday 17 December 2008, Jason Friedman wrote: > Hi all, > > I have had this make question that has been bugging me for a long time. > > I want to fix some eps files using eps2eps. This is the makefile I use: > > figure1_fixed.eps: figure1.eps > [tab] eps2eps $< $@ > > (replace [tab] with the

Re: make question

2008-12-17 Thread Omer Zak
Hello Jason, The following is what you need: -=-=-=-> SOURCES = $(wildcard ../../some/other/path/*.eps) TARGETS = $(patsubst ../../some/other/path/%.eps,%_fixed.eps) all: $(TARGETS) %_fixed.eps: ../../some/other/path/%.eps [TAB] eps2eps $< $@ -=-=-=-> The above works with GNU Make (I use GNU Mak