New makefile try
This commit is contained in:
parent
2d7f0e8fbb
commit
87d47b9ce5
28
Makefile
28
Makefile
@ -1,19 +1,11 @@
|
|||||||
# Makefile
|
ERLC=erlc
|
||||||
LIBDIR = `erl -eval \
|
ERLCFLAGS=-o
|
||||||
'io:format("~s~n", [code:lib_dir()])' -s init stop -noshell`
|
SRCDIR=src
|
||||||
VERSION = 1.0.3
|
BEAMDIR=./ebin
|
||||||
CC = erlc
|
|
||||||
ERL = erl
|
|
||||||
EBIN = ebin
|
|
||||||
CFLAGS = -I include -pa $(EBIN)
|
|
||||||
COMPILE = $(CC) $(CFLAGS) -o $(EBIN)
|
|
||||||
EBIN_DIRS = $(wildcard deps/*/ebin)
|
|
||||||
|
|
||||||
all: compile
|
all:
|
||||||
start: all start_all
|
@ mkdir -p $(BEAMDIR) ;
|
||||||
|
@ $(ERLC) $(ERLCFLAGS) $(BEAMDIR) $(SRCDIR)/*.erl ;
|
||||||
compile:
|
clean:
|
||||||
@$(ERL) -make
|
@ rm -rf $(BEAMDIR) ;
|
||||||
|
@ rm -rf erl_crush.dump
|
||||||
clean:
|
|
||||||
rm -rf ebin/*.beam
|
|
||||||
|
Loading…
Reference in New Issue
Block a user