mirror of
https://github.com/AmanTahiliani/todo.git
synced 2026-08-07 11:54:14 -04:00
Made Production Ready
This commit is contained in:
23
Makefile
Normal file
23
Makefile
Normal file
@@ -0,0 +1,23 @@
|
||||
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 ./...
|
||||
Reference in New Issue
Block a user