Check if ebin exists and create it if not

This commit is contained in:
sergey-miryanov
2010-02-04 15:04:52 +05:00
parent 6a6f663ea2
commit e5d14731b1

7
Makefile Normal file → Executable file
View File

@@ -1,10 +1,11 @@
ERL=erl
OTP_TOP=/opt/local/lib/erlang/lib
PLT_SRC=$(OTP_TOP)/kernel-2.12.4/ebin $(OTP_TOP)/stdlib-1.15.4/ebin/ $(OTP_TOP)/crypto-1.5.2.1/ebin $(OTP_TOP)/compiler-4.5.4/ebin $(OTP_TOP)/hipe-3.6.8/ebin/ $(OTP_TOP)/syntax_tools-1.5.5/ebin $(OTP_TOP)/hipe-3.6.8/ebin ebin
OTP_TOP=/usr/lib/erlang/lib
PLT_SRC=$(OTP_TOP)/kernel-2.12.5/ebin $(OTP_TOP)/stdlib-1.15.5/ebin/ $(OTP_TOP)/crypto-1.5.3/ebin $(OTP_TOP)/compiler-4.5.5/ebin $(OTP_TOP)/hipe-3.6.9/ebin/ $(OTP_TOP)/syntax_tools-1.5.6/ebin $(OTP_TOP)/hipe-3.6.9/ebin ebin
all: compile docs
compile:
test -d ebin || mkdir ebin
$(ERL) -make
cd priv && make
@@ -14,7 +15,7 @@ static:
clean:
- rm -rf ebin/*.beam doc/* sqlite3.plt src/test/*.beam
- rm -rf ct_run* all_runs.html variables* index.html
find . -name "*~" | xargs rm
- find . -name "*~" | xargs rm
cd priv && make clean
docs: