Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

37 lines (25 sloc) 0.78 kB
ERL ?= erl
EBIN_DIRS := $(wildcard deps/*/ebin)
ERLC_FLAGS := -W $(INCLUDE_DIRS:%=-I %) $(EBIN_DIRS:%=-pa %)
APP := couchbeam
all: lhttpc erl ebin/$(APP).app
lhttpc:
@(cd deps/lhttpc;$(MAKE))
erl:
@mkdir -p src/ebin
@$(ERL) -pa $(EBIN_DIRS) -noinput +B \
-eval 'case make:all() of up_to_date -> halt(0); error -> halt(1) end.'
docs:
@mkdir -p doc
@$(ERL) -noshell -run edoc_run application '$(APP)' '"."' '[{preprocess, true},{includes, ["."]}]'
test: all
prove t/*.t
cover: all
COVER=1 prove t/*.t
erl -detached -noshell -eval 'etap_report:create()' -s init stop
clean:
@echo "removing:"
@rm -fv ebin/*.beam ebin/*.app
@rm -fv deps/lhttpc/ebin/*.beam deps/lhttpc/ebin/*.app
ebin/$(APP).app: src/$(APP).app
@cp -v src/$(APP).app $@
Jump to Line
Something went wrong with that request. Please try again.