From 6d50beffe4ac5a5f4cb72ae43408d3aebc23a30d Mon Sep 17 00:00:00 2001 From: Justin McCarthy Date: Fri, 11 May 2018 16:42:41 -0700 Subject: [PATCH] relocate to root --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index f9e6a07..940a3cc 100644 --- a/Makefile +++ b/Makefile @@ -12,15 +12,15 @@ assets: $(THEME_SOURCES) comply: assets $(GO_SOURCES) @# $(eval VERSION := $(shell git describe --tags --always --dirty="-dev")) @# $(eval LDFLAGS := -ldflags='-X "github.com/strongdm/comply/internal/cli.Version=$(VERSION)"') - go build $(LDFLAGS) github.com/strongdm/comply/cmd/comply + go build $(LDFLAGS) github.com/strongdm/comply dist: clean $(eval VERSION := $(shell git describe --tags --always --dirty="-dev")) $(eval LDFLAGS := -ldflags='-X "github.com/strongdm/comply/internal/cli.Version=$(VERSION)"') mkdir dist echo $(VERSION) - GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -gcflags=-trimpath=$(GOPATH) -asmflags=-trimpath=$(GOPATH) $(LDFLAGS) -o dist/comply-$(VERSION)-darwin-amd64 ./cmd/comply - GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -gcflags=-trimpath=$(GOPATH) -asmflags=-trimpath=$(GOPATH) $(LDFLAGS) -o dist/comply-$(VERSION)-linux-amd64 ./cmd/comply + GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -gcflags=-trimpath=$(GOPATH) -asmflags=-trimpath=$(GOPATH) $(LDFLAGS) -o dist/comply-$(VERSION)-darwin-amd64 . + GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -gcflags=-trimpath=$(GOPATH) -asmflags=-trimpath=$(GOPATH) $(LDFLAGS) -o dist/comply-$(VERSION)-linux-amd64 . cd dist && tar -czvf comply-$(VERSION)-darwin-amd64.tgz comply-$(VERSION)-darwin-amd64 cd dist && tar -czvf comply-$(VERSION)-linux-amd64.tgz comply-$(VERSION)-linux-amd64 @@ -28,7 +28,7 @@ brew: clean assets $(GO_SOURCES) $(eval VERSION := $(shell cat version)) $(eval LDFLAGS := -ldflags='-X "github.com/strongdm/comply/internal/cli.Version=$(VERSION)"') mkdir bin - GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -gcflags=-trimpath=$(GOPATH) -asmflags=-trimpath=$(GOPATH) $(LDFLAGS) -o bin/comply ./cmd/comply + GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -gcflags=-trimpath=$(GOPATH) -asmflags=-trimpath=$(GOPATH) $(LDFLAGS) -o bin/comply . clean: rm -rf bin @@ -36,7 +36,7 @@ clean: rm -f comply install: assets $(GO_SOURCES) - go install github.com/strongdm/comply/cmd/comply + go install github.com/strongdm/comply export-example: cp example/narratives/* themes/comply-soc2/narratives