Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

54 lines (35 sloc) 1.875 kB
ERL=erl
VERSION=$(shell git describe)
GEOCOUCH_PLT ?= ../geocouch.plt
couchbase couchbase-check: REBAR_CONFIG := rebar_couchbase.config
couchdb couchdb-check: REBAR_CONFIG := rebar_couchdb.config
all:
@echo "Try \"make couchbase\" or \"make couchdb\"instead."
check:
@echo "Try \"make couchbase-check\" \"make couchdb-check\"instead."
.PHONY: couchbase
couchbase: compile
couchbase-check: do-check runtests-couchbase clean-again
.PHONY: couchdb
couchdb: compile
couchdb-check: do-check clean-again
compile:
./rebar -C $(REBAR_CONFIG) compile
compileforcheck:
./rebar -C $(REBAR_CONFIG) -D makecheck compile
runtests:
ERL_LIBS=. ERL_FLAGS="-pa ${COUCH_SRC} -pa ${COUCH_SRC}/../etap -pa ${COUCH_SRC}/../snappy -pa ${COUCH_SRC}/../../test/etap -pa ${COUCH_SRC}/../couch_set_view/ebin -pa ${COUCH_SRC}/../mochiweb -pa ${COUCH_SRC}/../lhttpc -pa ${COUCH_SRC}/../erlang-oauth -pa ${COUCH_SRC}/../ejson -pa ${COUCH_SRC}/../mapreduce" prove ./vtree/test/*.t
do-check: clean compileforcheck dialyzer runtests
runtests-couchbase:
PATH=${PATH}:../couchstore ERL_LIBS=. ERL_FLAGS="-pa ${COUCH_SRC} -pa ${COUCH_SRC}/../etap -pa ${COUCH_SRC}/../snappy -pa ${COUCH_SRC}/../../test/etap -pa ${COUCH_SRC}/../couch_set_view/ebin -pa ${COUCH_SRC}/../mochiweb -pa ${COUCH_SRC}/../lhttpc -pa ${COUCH_SRC}/../erlang-oauth -pa ${COUCH_SRC}/../ejson -pa ${COUCH_SRC}/../mapreduce -pa ${COUCH_SRC}/../couch_set_view/test" prove gc-couchbase/test/*.t
clean clean-again:
./rebar -C rebar_couchbase.config clean -r
./rebar -C rebar_couchdb.config clean -r
rm -f *.tar.gz
$(GEOCOUCH_PLT):
dialyzer --output_plt ../geocouch.plt --build_plt --apps kernel stdlib
dialyzer: $(GEOCOUCH_PLT)
dialyzer --verbose --plt $(GEOCOUCH_PLT) -r vtree
geocouch-$(VERSION).tar.gz:
git archive --prefix=geocouch-$(VERSION)/ --format tar HEAD | gzip -9vc > $@
dist: geocouch-$(VERSION).tar.gz
Jump to Line
Something went wrong with that request. Please try again.