2014-07-28 08:46:17 +04:00
|
|
|
INSTALL_PATH ?= $(CURDIR)
|
|
|
|
|
2014-08-27 10:31:46 +04:00
|
|
|
$(shell ./tools/build_config.sh build_config.mk $INSTALL_PATH)
|
2014-07-28 08:46:17 +04:00
|
|
|
|
|
|
|
include build_config.mk
|
|
|
|
|
|
|
|
export CGO_CFLAGS
|
|
|
|
export CGO_CXXFLAGS
|
|
|
|
export CGO_LDFLAGS
|
|
|
|
export LD_LIBRARY_PATH
|
|
|
|
export DYLD_LIBRARY_PATH
|
|
|
|
export GO_BUILD_TAGS
|
|
|
|
|
2014-07-20 15:03:00 +04:00
|
|
|
all: build
|
|
|
|
|
|
|
|
build:
|
2014-10-01 12:47:35 +04:00
|
|
|
$(GO) install -tags '$(GO_BUILD_TAGS)' ./...
|
2014-07-20 15:03:00 +04:00
|
|
|
|
|
|
|
clean:
|
2014-10-01 12:47:35 +04:00
|
|
|
$(GO) clean -i ./...
|
2014-07-20 15:03:00 +04:00
|
|
|
|
|
|
|
test:
|
2014-10-01 12:47:35 +04:00
|
|
|
$(GO) test -tags '$(GO_BUILD_TAGS)' ./...
|
2014-09-04 08:53:19 +04:00
|
|
|
|
|
|
|
pytest:
|
|
|
|
sh client/ledis-py/tests/all.sh
|