"Fithian, Craig [IT]" <[EMAIL PROTECTED]> writes:

> Unfortunately it doesn't  work with gnu make - ...
>
> default: odir/file.o
>
> gsrcdir/file.c: input.l
>       generate_file < input.l > $@
>
> odir/%.o: gsrcdir/%.c
>       cc -c $< -o $@

I modified your example like this (/tmp/makefile):

default: out/file.o

src/file.c: input.l
        echo input.l to $@

out/%.o: src/%.c
        echo -c $< -o $@


Then I do

$ cd /tmp
$ mkdir src out
$ touch input.l

This setup works as expected with make 3.80 from Debian unstable
and with current CVS head. Which version of make are you using?




_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to