From 2994631534a145039015279d1e164eccef543a33 Mon Sep 17 00:00:00 2001 From: Blaine Gardner Date: Sun, 16 Sep 2018 20:14:27 -0600 Subject: [PATCH] Add Makefile Signed-off-by: Blaine Gardner --- Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ec12140 --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +SRC_ROOT ?= github.com/BlaineEXE/octopus +OUTPUT_DIR ?= _output + +BUILD_OPTS ?= -buildmode pie + +dep: + dep ensure + +build: dep + go build \ + $(BUILD_OPTS) \ + -o $(OUTPUT_DIR)/octopus \ + $(SRC_ROOT)/... + +install: dep + go install $(BUILD_OPTS) $(SRC_ROOT)/... + +clean: + rm -rf $(OUTPUT_DIR) + rm -rf vendor/