This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: using Automake with unsupported languages
- From: Alexandre Duret-Lutz <duret_g at lrde dot epita dot fr>
- To: Vance Shipley <vances at motivity dot ca>
- Cc: automake at gnu dot org
- Date: 15 Sep 2002 21:06:24 +0200
- Subject: Re: using Automake with unsupported languages
- References: <20020915012415.GA2948@frogman.motivity.ca>
>>> "Vance" == Vance Shipley <vances@motivity.ca> writes:
[...]
Vance> I created a rule for making .beam files out of .erl source files:
Vance> .erl.beam:
Vance> @ERLC@ -b beam $@ $<
Vance> (Autoconf finds the path to the erlc compiler)
Vance> Now how can I create Automake instructions to build foo.beam?
Try using _DATA:
beamdir = $(bindir)
beam_DATA = netaccess.beam
EXTRA_DIST = netaccess.erl
CLEANFILES = $(beam_DATA)
.erl.beam:
@ERLC@ -b beam $@ $<
Vance> I tried this but it is still expecting a .o file:
Vance> bin_PROGRAMS = netaccess.beam
Vance> netaccess_beam_SOURCES = netaccess.erl
Yep. The _PROGRAMS machinery isn't very usable with languages
that don't link `.o' files.
--
Alexandre Duret-Lutz