add: man page and installation make step
This commit is contained in:
5
Makefile
5
Makefile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user