[erlang-questions] Erlang and autoconf/make

Romain Lenglet rlenglet@REDACTED
Thu Nov 16 08:39:58 CET 2006


Recently I wrote:
[...]
> And by the way, even when using implicit rules, the syntax:
> SUFFIXES = .erl .beam
> is *NOT* supported by FreeBSD make.
>
> One must use:
> .SUFFIXES: .erl .beam
> This syntax is supported by GNU make, pmake and FreeBSD make.

Stupid me.
Yes, in Makefiles, one must use a .SUFFIXES target.
But in Makefile.am files, one must use a SUFFIXES variable!
And then, automake generates a .SUFFIXES target from the content 
of the SUFFIXES variable defined in Makefile.am files.

As a consequence, this is correct in a Makefile, but wrong in a 
Makefile.am:
.SUFFIXES: .erl .beam .rel .script .boot

And in a Makefile.am, one should really write:
SUFFIXES = .erl .beam .rel .script .boot


Sorry for the confusion.

-- 
Romain LENGLET
Pr. Chiba Shigeru Group
Dept. of Mathematical and Computing Sciences
Tokyo Institute of Technology



More information about the erlang-questions mailing list