This repository has been archived on 2025-10-30. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
gitwarrior/Makefile

27 lines
389 B
Makefile

BUILD_TARGET = ./bin/
INSTALL_PATH = /usr/local/
GITW = main.go
all: clean test build
run: run-gitw
run-gitw:
go run $(GITW)
clean:
go clean
rm -rf $(BUILD_TARGET)
test:
go test ./...
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