Skip to content

Commit

Permalink
chore(build): add makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
TorchedSammy committed May 25, 2021
1 parent cd65d23 commit 127ea83
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
PREFIX ?= /usr
DESTDIR ?=
BINDIR ?= $(PREFIX)/bin

build:
@go build -ldflags "-s -w"

install:
@install -v -d "$(DESTDIR)$(BINDIR)/" && install -m 0755 -v tensho "$(DESTDIR)$(BINDIR)/tensho"
@echo "Tensho has been installed"

uninstall:
@rm -vrf "$(DESTDIR)$(BINDIR)/tensho"
@echo "Tensho has been removed from the system bin directory! :("

clean:
@go clean

all: build install

.PHONY: install uninstall build clean

0 comments on commit 127ea83

Please sign in to comment.