# Go parameters GOCMD=go GOBUILD=$(GOCMD) build GOCLEAN=$(GOCMD) clean GOTEST=$(GOCMD) test GOGET=$(GOCMD) get PROJECT_NAME=etcd-set BIN_DIR=/usr/sbin CP_CMD=/usr/bin/cp COMMAND=etcd-set all: build-go build-go: go build -o $(PROJECT_NAME) test: $(GOTEST) -v ./... install:build-go $(CP_CMD) $(COMMAND) $(DESTDIR)$(BIN_DIR) clean: $(GOCLEAN) rm -f $(PROJECT_NAME)