mirror of
https://github.com/TehPeGaSuS/xmasbot.git
synced 2026-07-08 02:25:44 +02:00
20 lines
402 B
Makefile
20 lines
402 B
Makefile
prefix=/usr/local
|
|
PWD := $(shell pwd)
|
|
GOPATH :=$(PWD)/deps
|
|
appname = xmasbot
|
|
|
|
all:
|
|
GOPATH=$(GOPATH) go build -v
|
|
install:
|
|
install -Dm755 $(appname) $(prefix)/bin/$(appname)
|
|
install -Dm644 LICENSE "$(prefix)/share/licenses/$(appname)/LICENSE"
|
|
|
|
uninstall:
|
|
rm "$(prefix)/bin/$(appname)"
|
|
rm "$(prefix)/share/licenses/$(appname)/LICENSE"
|
|
|
|
clean:
|
|
chmod -R 755 $(GOPATH)
|
|
rm -rf $(GOPATH)
|
|
rm $(appname)
|