File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 1- .PHONY : all install build release capdefs test smoke gofmt irctest
2-
31GIT_COMMIT := $(shell git rev-parse HEAD 2> /dev/null)
42GIT_TAG := $(shell git tag --points-at HEAD 2> /dev/null | head -n 1)
53
@@ -9,33 +7,42 @@ export CGO_ENABLED ?= 0
97
108capdef_file = ./irc/caps/defs.go
119
10+ .PHONY : all
1211all : build
1312
13+ .PHONY : install
1414install :
1515 go install -v -ldflags " -X main.commit=$( GIT_COMMIT) -X main.version=$( GIT_TAG) "
1616
17+ .PHONY : build
1718build :
1819 go build -v -ldflags " -X main.commit=$( GIT_COMMIT) -X main.version=$( GIT_TAG) "
1920
21+ .PHONY : release
2022release :
2123 goreleaser --skip=publish --clean
2224
25+ .PHONY : capdefs
2326capdefs :
2427 python3 ./gencapdefs.py > ${capdef_file}
2528
29+ .PHONY : test
2630test :
2731 python3 ./gencapdefs.py | diff - ${capdef_file}
2832 go test ./...
2933 go vet ./...
3034 ./.check-gofmt.sh
3135
36+ .PHONY : smoke
3237smoke : install
3338 ergo mkcerts --conf ./default.yaml || true
3439 ergo run --conf ./default.yaml --smoke
3540
41+ .PHONY : gofmt
3642gofmt :
3743 ./.check-gofmt.sh --fix
3844
45+ .PHONY : irctest
3946irctest : install
4047 git submodule update --init
4148 cd irctest && make ergo
You can’t perform that action at this time.
0 commit comments