mirror of
https://github.com/strongdm/comply
synced 2025-12-16 19:24:01 +00:00
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e5f9fd1988 | ||
|
|
2e891997b7 | ||
|
|
53dfead0b0 | ||
|
|
b569cb13d9 | ||
|
|
81ece97296 | ||
|
|
f732f7bb69 |
8
Makefile
8
Makefile
@@ -7,7 +7,7 @@ assets: $(THEME_SOURCES)
|
|||||||
@go get github.com/elazarl/go-bindata-assetfs/...
|
@go get github.com/elazarl/go-bindata-assetfs/...
|
||||||
@go install github.com/elazarl/go-bindata-assetfs
|
@go install github.com/elazarl/go-bindata-assetfs
|
||||||
go-bindata-assetfs -o bindata.go -pkg theme -prefix themes themes/...
|
go-bindata-assetfs -o bindata.go -pkg theme -prefix themes themes/...
|
||||||
mv bindata_assetfs.go internal/theme/themes_bindata.go
|
mv bindata.go internal/theme/themes_bindata.go
|
||||||
|
|
||||||
comply: assets $(GO_SOURCES)
|
comply: assets $(GO_SOURCES)
|
||||||
@# $(eval VERSION := $(shell git describe --tags --always --dirty="-dev"))
|
@# $(eval VERSION := $(shell git describe --tags --always --dirty="-dev"))
|
||||||
@@ -15,8 +15,8 @@ comply: assets $(GO_SOURCES)
|
|||||||
go build $(LDFLAGS) github.com/strongdm/comply/cmd/comply
|
go build $(LDFLAGS) github.com/strongdm/comply/cmd/comply
|
||||||
|
|
||||||
dist: clean
|
dist: clean
|
||||||
$(eval VERSION := $(shell cat VERSION))
|
$(eval VERSION := $(shell git describe --tags --always --dirty="-dev"))
|
||||||
$(eval LDFLAGS := -ldflags='-X "cli.Version=$(VERSION)"')
|
$(eval LDFLAGS := -ldflags='-X "github.com/strongdm/comply/internal/cli.Version=$(VERSION)"')
|
||||||
mkdir dist
|
mkdir dist
|
||||||
echo $(VERSION)
|
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=darwin GOARCH=amd64 CGO_ENABLED=0 go build -gcflags=-trimpath=$(GOPATH) -asmflags=-trimpath=$(GOPATH) $(LDFLAGS) -o dist/comply-$(VERSION)-darwin-amd64 ./cmd/comply
|
||||||
@@ -26,7 +26,7 @@ dist: clean
|
|||||||
|
|
||||||
brew: clean assets $(GO_SOURCES)
|
brew: clean assets $(GO_SOURCES)
|
||||||
$(eval VERSION := $(shell cat version))
|
$(eval VERSION := $(shell cat version))
|
||||||
$(eval LDFLAGS := -ldflags='-X "cli.Version=$(VERSION)"')
|
$(eval LDFLAGS := -ldflags='-X "github.com/strongdm/comply/internal/cli.Version=$(VERSION)"')
|
||||||
mkdir bin
|
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 ./cmd/comply
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user