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