add: man page and installation make step

This commit is contained in:
2023-10-26 17:27:43 +02:00
parent 973338baff
commit 896066f8a7
4 changed files with 94 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
BUILD_TARGET = ./bin/
INSTALL_PATH = /usr/local/
GITW = main.go
all: clean test build
@@ -19,3 +20,7 @@ build: build-gitw
build-gitw:
go build -ldflags "-s -w" -o $(BUILD_TARGET)gitw $(GITW)
install:
cp $(BUILD_TARGET)gitw $(INSTALL_PATH)bin/gitw
cp docs/gitw.1 $(INSTALL_PATH)man/man1/gitw.1