Subject: Re: make(8) .PREFIX issue
To: Eric Haszlakiewicz <erh@jodi.nimenees.com>
From: Christos Zoulas <christos@zoulas.com>
List: current-users
Date: 10/22/2004 12:12:39
On Oct 22, 10:13am, erh@jodi.nimenees.com (Eric Haszlakiewicz) wrote:
-- Subject: Re: make(8) .PREFIX issue

| On Thu, Oct 21, 2004 at 04:32:27PM -0400, Christos Zoulas wrote:
| > You can do even better by supplying a suffix rule:
| > 
| > .SUFFIXES:      .db .null
| > .NULL:          .null
| > 
| > .null.db:       
| > 	${MAKEMAP} ${MMOPTS} ${.PREFIX} < ${.PREFIX}
| 
| 	Well, _that's_ certainly not documented.

It is clearly documented in PSD.doc/tutorial.ms.
File a PR to invoke wizd if you think is should appear in the man page.

| I assume .NULL means
| something like "turn the given suffix into the empty string when
| generating filenames".  What else does it do?

Well, not exactly...

It means "Use this suffix rule on a file that has an unknown suffix",
which makes it the suffix rule of last resort.

christos