This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]