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> 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




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