On Mon, 31 Mar 2003, Paul D. Smith wrote:

>   bm> %.out: %.in
>   bm>         @echo "creating $@ from $<"

> If you want a makefile that's portable between many variants of make you
> need to use suffix rules:
> 
>   .SUFFIXES: .in .out
>   .in.out:
>         @echo "creating $@ from $<"

Thanks for helping, Paul.

So my example was a bit simple.  In my case the source files are in
another directory.  So I guess I can use .PATH (for BSD) and VPATH for GNU
make.

> Of course, a better way to go is to just require the use of GNU make:
> requiring a portable make is infinitely simpler than writing portable
> makefiles.

Yes, I see your point.

-- 
Bill Moseley [EMAIL PROTECTED]



_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make

Reply via email to