banana/Makefile

29 lines
499 B
Makefile
Raw Normal View History

2024-06-08 01:19:30 +00:00
EXEs=banana.elf banana.exe
2024-06-05 05:01:15 +00:00
all: tidy clean ${EXEs}
tidy:
go mod tidy
banana.elf:
go build -o banana.elf banana.go
2024-06-08 01:19:30 +00:00
banana.exe:
GOOS=windows go build -o banana.exe banana.go
2024-06-05 05:01:15 +00:00
clean:
go clean
-rm ${EXEs}
run:
2024-06-08 01:19:30 +00:00
go run banana.go -i live/addons.list -o live/AddOns/
2024-06-05 05:01:15 +00:00
install:
GOBIN=~/.local/bin/ go install banana.go
install-steamos: banana.elf
cp banana.elf /usr/bin/banana
cp banana.timer banana.service /etc/systemd/system/
systemctl enable banana.timer
systemctl enable banana.service