From b7660adbbf7453b4168d4ad3eb0455a8c43271fb Mon Sep 17 00:00:00 2001 From: Danny van Kooten Date: Thu, 31 May 2018 09:03:15 +0200 Subject: [PATCH] use simple (dynamic) build when running make build. only require packr for dist task. #44 #45 --- Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index e96b85e..6614990 100644 --- a/Makefile +++ b/Makefile @@ -11,14 +11,14 @@ ENV ?= $(shell export $(cat .env | xargs)) all: build .PHONY: install -install: $(wildcard *.go) +install: $(wildcard *.go) $(GOPATH)/bin/packr $(GOPATH)/bin/packr install -v -ldflags '-w $(LDFLAGS)' $(MAIN_PKG) .PHONY: build build: $(EXECUTABLE) $(EXECUTABLE): $(SOURCES) assets/build $(GOPATH)/bin/packr - $(GOPATH)/bin/packr build -v -ldflags '-w $(LDFLAGS)' -o $@ $(MAIN_PKG) + go build -o $@ $(MAIN_PKG) dist: assets/dist build/fathom-linux-amd64 @@ -28,7 +28,6 @@ build/fathom-linux-amd64: $(GOPATH)/bin/packr $(GOPATH)/bin/packr: GOBIN=$(GOPATH)/bin go get github.com/gobuffalo/packr/... - assets/build: $(JS_SOURCES) if [ ! -d "node_modules" ]; then npm install; fi gulp