A simple cross platform capybara clicker game written with ebiten. Can be run on web!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
674 B

10 months ago
game:=capyclick
desktopBin:=bin/desktop
webBin:=bin/web
wasmHtml:=build/capyclick.html
wasmExec:=$(shell go env GOROOT)
10 months ago
current: clean environment
cd src && go build && mv $(game)* ../$(desktopBin)
10 months ago
web: environment
cd src && env GOOS=js GOARCH=wasm go build -o $(game).wasm . && mv $(game).wasm ../$(webBin)
cp $(wasmHtml) $(webBin)
cp $(wasmExec)/misc/wasm/wasm_exec.js $(webBin)
desktop: clean environment
cd src && GOOS=windows GOARCH=amd64 go build && mv $(game)* ../$(desktopBin)
cd src && GOOS=linux GOARCH=amd64 go build && mv $(game)* ../$(desktopBin)
cross: clean environment web desktop
environment:
mkdir -p $(desktopBin) $(webBin)
10 months ago
clean:
rm -rf bin