forked from plexsystems/promdoc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
19 lines (16 loc) · 778 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
.PHONY: build
build:
@go build
.PHONY: test
test:
@go test -v ./... -count=1
.PHONY: release
release:
@test $(version)
GOOS=darwin GOARCH=amd64 go build -o promdoc-darwin-amd64 -ldflags="-X 'github.com/plexsystems/promdoc/internal/commands.version=$(version)'"
GOOS=darwin GOARCH=arm64 go build -o promdoc-darwin-arm64 -ldflags="-X 'github.com/plexsystems/promdoc/internal/commands.version=$(version)'"
GOOS=windows GOARCH=amd64 go build -o promdoc-windows-amd64 -ldflags="-X 'github.com/plexsystems/promdoc/internal/commands.version=$(version)'"
GOOS=linux GOARCH=amd64 go build -o promdoc-linux-amd64 -ldflags="-X 'github.com/plexsystems/promdoc/internal/commands.version=$(version)'"
.PHONY: minify-css
minify-css:
@cat promdoc.css | esbuild --loader=css --minify