commit
This commit is contained in:
parent
5f05e40134
commit
4bbddc1579
1 changed files with 28 additions and 0 deletions
28
makefile
Normal file
28
makefile
Normal file
|
@ -0,0 +1,28 @@
|
|||
# Makefile for magnet-to-torrent
|
||||
|
||||
BINARY_NAME := magnet-to-torrent
|
||||
|
||||
.PHONY: all build run clean fmt test install uninstall
|
||||
|
||||
all: build
|
||||
|
||||
build:
|
||||
go build -o $(BINARY_NAME) main.go
|
||||
|
||||
run: build
|
||||
./$(BINARY_NAME)
|
||||
|
||||
fmt:
|
||||
gofmt -w main.go
|
||||
|
||||
test:
|
||||
go test ./...
|
||||
|
||||
install: build
|
||||
install -Dm755 $(BINARY_NAME) $(DESTDIR)/usr/local/bin/$(BINARY_NAME)
|
||||
|
||||
uninstall:
|
||||
rm -f $(DESTDIR)/usr/local/bin/$(BINARY_NAME)
|
||||
|
||||
clean:
|
||||
rm -f $(BINARY_NAME)
|
Loading…
Add table
Reference in a new issue