sparktwinny / erlang-mysql-driver

Automatically exported from code.google.com/p/erlang-mysql-driver
Other
0 stars 0 forks source link

Need a makefile #6

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
ERL_SOURCES := $(wildcard src/*.erl)
ERL_OBJECTS := $(ERL_SOURCES:src/%.erl=ebin/%.beam)

ebin/%.beam: src/%.erl
    erlc +debug_info -o ebin/ $<

all: $(ERL_OBJECTS)

That seems to do the job.

Original issue reported on code.google.com by davidnwe...@gmail.com on 25 Sep 2007 at 3:58

GoogleCodeExporter commented 8 years ago
erlc +debug_info -o ebin/ $<
seems not work
need to be changed to 

erlc +debug_info -o $@ $<

Original comment by TonyLY...@gmail.com on 1 Mar 2010 at 7:13