[erlang-questions] Erlang and autoconf/make

Romain Lenglet rlenglet@REDACTED
Wed Nov 15 07:39:42 CET 2006

Pupeno wrote:
> BTW, I've found this way of writing it:
> %.beam: %.erl
> 	$(ERLC) $(ERLCFLAGS) -b beam $<
> instead of
> SUFFIXES = .erl .beam
> .erl.beam:
> 	$(ERLC) $(ERLCFLAGS) -b beam $<
> which seems to be the current way of doing it. And it is more
> readable.

Yes, you're right, thanks!
But I believed that pattern rules were a GNU Make'ism?
I believe that BSD Make supports only implicit rules, and not 
pattern rules. Therefore, I believe that implicit rules are more 
portable. Maybe I am wrong.

Since Automake is supposed to generate Makefiles that do not 
require GNU Make, it may be a good idea to not depend on GNU 
Make in your Makefile.am.

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

More information about the erlang-questions mailing list