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]

Re: using Automake with unsupported languages


>>>>> "Vance" == Vance Shipley <vances@motivity.ca> writes:

Vance> Erlang source files have .erl extensions.  The erlang compiler
Vance> 'erlc' creates files with the extension .beam.  Erlang is
Vance> similiar to Java in that it uses a virtual machine.

Vance> I created a rule for making .beam files out of .erl source files:
Vance> .erl.beam:
Vance>    @ERLC@ -b beam $@ $<

Stylistically it is slightly preferred to write $(ERLC).
That way the user can override the setting at make time, as needed.

Vance> Now how can I create Automake instructions to build foo.beam?

Just make it _DATA:

    data_DATA = netaccess.beam

Having a way to just list the sources and let automake guess what
should be installed as been on the to-do list for a long time.

Tom



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