craft-bot/makefile
Timofey.Kovalev 19d6fff7e7
All checks were successful
continuous-integration/drone Build is passing
add frags
2021-06-16 11:33:05 +03:00

20 lines
376 B
Makefile

.PHONY: all
.PHONY: build
.PHONY: install
.PHONY: run
all: build
build: build/craft-bot
build/craft-bot: *.go
go build -o build/craft-bot *.go
install: build
mkdir -p /usr/local/craft-bot
install build/craft-bot /usr/local/craft-bot/
install craft-bot.service /etc/systemd/system/craft-bot.service
systemctl daemon-reload
run: build
./build/craft-bot -c config.json