On Fri, 15 Feb 2008, Lorenzo Fiorini wrote:
> Sorry,  the gnu make doc is huge but I can't the answer for this easy thing:
> I have a dir with several prg and I what to issue "hdo hbcmp -kM -gh
> -static -W2 -q0 -n " only for the prg newer than hrb but I don't want
> to list the prg inside the Makefile.
> Any idea?

PRGFILES=$(wildcard *.prg)
HRBFILES=$(patsubst %.prg,%.hrb,$(PRGFILES))

%.hrb: %.prg
        hdo hbcmp -kM -gh -w2 -q0 -n -o$@ $<

all : $(HRBFILES)


best regards,
Przemek
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to