Skip to content

Commit

Permalink
Add Makefile
Browse files Browse the repository at this point in the history
Signed-off-by: Blaine Gardner <[email protected]>
  • Loading branch information
BlaineEXE committed Sep 17, 2018
1 parent 878ab6a commit 2994631
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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/

0 comments on commit 2994631

Please sign in to comment.