Current section
Files
Jump to
Current section
Files
makefile
A = .a
O = .o
B = .beam
E =
.SUFFIXES : .h .c .i $O $E .hrl .erl .beam .sh
PROJ := ediff
BIN := _build/default/bin
ELIB := _build/default/lib
EBIN := ${ELIB}/${PROJ}/ebin
ERLC_FLAGS := -o${EBIN}
$E$B:
erlc ${ERLC_FLAGS} $@
all:
rebar3 escriptize
clean:
-rm -rf src/*$B *dump test/*.tmp
distclean: clean
-rm -rf _build ebin
tar:
git archive --format tar.gz --prefix ${PROJ}/ -o ${PROJ}.tar.gz HEAD
test: unit
cd test; PROG=../${BIN}/ediff ./npdif-test.sh >ediff.tmp; diff npdif-test.out ediff.tmp
unit:
rebar3 eunit --cover
rebar3 cover
cover: unit
lynx _build/test/cover/index.html
_checkouts:
mkdir _checkouts
-cd _checkouts; ln -s ../../rebar3_hex .