Files
todo/Makefile

23 lines
363 B
Makefile
Raw Permalink Normal View History

2025-05-22 23:51:27 -04:00
BINARY_NAME=todo
INSTALL_PATH=/usr/local/bin
.PHONY: build
build:
go build -o $(BINARY_NAME) ./cmd/todo
.PHONY: install
install: build
mkdir -p $(INSTALL_PATH)
cp $(BINARY_NAME) $(INSTALL_PATH)/$(BINARY_NAME)
.PHONY: uninstall
uninstall:
rm -f $(INSTALL_PATH)/$(BINARY_NAME)
.PHONY: clean
clean:
rm -f $(BINARY_NAME)
.PHONY: test
test:
go test -v ./...