Created
March 1, 2015 03:58
-
-
Save criloz/c79a4efa44379c194567 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.PHONY : all build | |
CURRENT_DIRECTORY := $(shell pwd) | |
GOPATH := $(CURRENT_DIRECTORY):$(CURRENT_DIRECTORY)/src/vendors | |
BUILD_DIR:=$(CURRENT_DIRECTORY)/bin | |
TASKS_DIR:=$(CURRENT_DIRECTORY)/tasks | |
SERVERS_FILE:=$(TASKS_DIR)/servers.yml | |
export GOPATH | |
all: build | |
build: move-assets | |
# build pulsar | |
go build -o $(BUILD_DIR)/pulsar -v $(CURRENT_DIRECTORY)/src/pulsar.go | |
move-assets: | |
cp -r $(CURRENT_DIRECTORY)/assets $(BUILD_DIR) | |
install-elasticsearch: get-networking | |
exec $(CURRENT_DIRECTORY)/bin/python $(TASKS_DIR)/install_elasticsearch.py $(SERVERS_FILE) | |
get-networking: | |
exec $(CURRENT_DIRECTORY)/bin/python $(TASKS_DIR)/get_networking.py $(SERVERS_FILE) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment