help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Portability of % match


From: Bill Moseley
Subject: Re: Portability of % match
Date: Mon, 31 Mar 2003 15:34:23 -0800 (PST)

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 address@hidden





reply via email to

[Prev in Thread] Current Thread [Next in Thread]