Re: Suffix rules and prerequisites

Eli Zaretskii <[email protected]> Wed, 22 Apr 2026 18:59:12 +0300
Newsgroups gmane.comp.gnu.make.general
Message-ID <[email protected]>
> Date: Wed, 22 Apr 2026 17:19:28 +0200
> From: Rene Kita <[email protected]>
> 
> The Makefile below works well with OpenBSD make and bmake but fails with
> GNU make. I'm looking for a way to make this work with GNU make,
> preferably in a portable way.
> 
> #v+
> .SUFFIXES: .in
> 
> all: foo
> 
> .in: bar
> 	test -f bar
> 	cat bar > $@

According to the GNU Make manual, suffix rules cannot have
prerequisites.  See the node "Suffix Rules" in the manual.