This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
using Automake with unsupported languages
- From: Vance Shipley <vances at motivity dot ca>
- To: automake at gnu dot org
- Date: Sat, 14 Sep 2002 21:24:15 -0400
- Subject: using Automake with unsupported languages
I have as part of the package I'm building files written in Erlang.
I have not found a way to get them built using Automake.
Erlang source files have .erl extensions. The erlang compiler 'erlc'
creates files with the extension .beam. Erlang is similiar to Java
in that it uses a virtual machine. These .beam files are the compiled
programs which are run by the Erlang virtual machine.
I created a rule for making .beam files out of .erl source files:
.erl.beam:
@ERLC@ -b beam $@ $<
(Autoconf finds the path to the erlc compiler)
Now how can I create Automake instructions to build foo.beam?
I tried this but it is still expecting a .o file:
bin_PROGRAMS = netaccess.beam
netaccess_beam_SOURCES = netaccess.erl
-Vance