Add docs, Makefile
This commit is contained in:
24
Makefile
Normal file
24
Makefile
Normal file
@ -0,0 +1,24 @@
|
||||
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}
|
Reference in New Issue
Block a user