From 87d47b9ce5f002a8fde4e2e14e00490f703c1be7 Mon Sep 17 00:00:00 2001 From: Francois Ribemont Date: Wed, 24 Feb 2016 23:47:26 +0000 Subject: [PATCH] New makefile try --- Makefile | 28 ++++++++++------------------ 1 file changed, 10 insertions(+), 18 deletions(-) diff --git a/Makefile b/Makefile index 623b861..f69639f 100644 --- a/Makefile +++ b/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