[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: using Automake with unsupported languages

From: Alexandre Duret-Lutz
Subject: Re: using Automake with unsupported languages
Date: 15 Sep 2002 21:06:24 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

>>> "Vance" == Vance Shipley <address@hidden> 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)
        @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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]