Skip to content

Instantly share code, notes, and snippets.

@criloz
Created March 1, 2015 03:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save criloz/c79a4efa44379c194567 to your computer and use it in GitHub Desktop.
Save criloz/c79a4efa44379c194567 to your computer and use it in GitHub Desktop.
.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