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.
 
 
 

27 lines
750 B

game:=capyclick
desktopBin:=bin/desktop
webBin:=bin/web
wasmHtml:=build/capyclick.html
wasmHtmlIFrame:=build/capyclick_iframe.html
wasmExec:=$(shell go env GOROOT)/misc/wasm/wasm_exec.js
current: clean environment
cd src && go build && mv $(game)* ../$(desktopBin)
web: environment
cd src && env GOOS=js GOARCH=wasm go build -o $(game).wasm . && mv $(game).wasm ../$(webBin)
cp $(wasmHtml) $(webBin)
cp $(wasmHtmlIFrame) $(webBin)
cp $(wasmExec) $(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)
clean:
rm -rf bin