fuzzyworld

template / windows / files / Makefile

Branch windows · default branch · all branches

Makefile

Blame: the commit that last changed each line · file · history

fe86bedc 2022-11-17 Pavel Safronov1ifeq ($(OS),Windows_NT)
2 SHELL := pwsh.exe
3else
4 SHELL := pwsh
5endif
6.SHELLFLAGS := -Command
763c260d 2022-10-06 Pavel Safronov7
fe86bedc 2022-11-17 Pavel Safronov8all: install
ae89a42a 2022-11-02 Pavel Safronov9
75a066b2 2022-11-16 Pavel Safronov10clean:
11 go clean
12
763c260d 2022-10-06 Pavel Safronov13build:
14a9913e 2022-11-16 Pavel Safronov14 go mod tidy
763c260d 2022-10-06 Pavel Safronov15 go build .
16
75a066b2 2022-11-16 Pavel Safronov17lint: build
fe86bedc 2022-11-17 Pavel Safronov18 golangci-lint version
14a9913e 2022-11-16 Pavel Safronov19 golangci-lint run
75a066b2 2022-11-16 Pavel Safronov20
fe86bedc 2022-11-17 Pavel Safronov21.PHONY: test
75a066b2 2022-11-16 Pavel Safronov22test: build
fe86bedc 2022-11-17 Pavel Safronov23 New-Item -Path .\test\ -ItemType Directory -Force
24 go test -v -coverprofile="./test/coverage.out"
75a066b2 2022-11-16 Pavel Safronov25 go tool cover -html="./test/coverage.out" -o "./test/coverage.html"
fe86bedc 2022-11-17 Pavel Safronov26 start "./test/coverage.html"
75a066b2 2022-11-16 Pavel Safronov27
28install: build test lint
52e9ad7c 2022-11-08 Pavel Safronov29 go install
30 template reset
763c260d 2022-10-06 Pavel Safronov31
95a5c62c 2022-10-26 Pavel Safronov32uninstall:
b67e39c6 2022-10-26 Pavel Safronov33 go clean -i gitlab.com/fuzzy-rp/template...
95a5c62c 2022-10-26 Pavel Safronov34
b3de39c0 2022-11-16 Pavel Safronov35release-dry-run: build test lint
36 go install github.com/goreleaser/goreleaser@latest
37 goreleaser release --snapshot --rm-dist
38
39release-local: build test lint
40 go install github.com/goreleaser/goreleaser@latest
41 goreleaser build --single-target