25 lines
426 B
Makefile
25 lines
426 B
Makefile
|
CMD_NAME := git-project-manager
|
||
|
GO_FORMATTER := gofumpt
|
||
|
|
||
|
IS_GNU_SED := $(shell sed --version >/dev/null 2>&1 && echo true || echo false)
|
||
|
SED_INLINE := $(if $(filter true,$(IS_GNU_SED)),-i,-i '')
|
||
|
|
||
|
.PHONY: all test build install docs clean
|
||
|
|
||
|
all: test build install docs
|
||
|
|
||
|
test:
|
||
|
go test -v ./...
|
||
|
|
||
|
build: test
|
||
|
go build -o bin/${CMD_NAME}
|
||
|
|
||
|
install:
|
||
|
go install -v .
|
||
|
|
||
|
docs:
|
||
|
bin/${CMD_NAME} docs md
|
||
|
|
||
|
clean:
|
||
|
rm -rf bin/${CMD_NAME}
|