Base game template
This commit is contained in:
parent
d946e026c6
commit
f83c7c0781
7 changed files with 6158 additions and 0 deletions
16
Makefile
Normal file
16
Makefile
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
.DEFAULT_GOAL := help
|
||||
|
||||
.PHONY: help
|
||||
help: ## List targets in this Makefile
|
||||
@awk 'BEGIN { FS = ":|:.*?## "; OFS="\t" }; /^[0-9a-zA-Z_-]+?:/ { print $$1, $$2 }' $(MAKEFILE_LIST) \
|
||||
| column --separator $$'\t' --table --table-wrap 2 --output-separator ' ' \
|
||||
| sort --dictionary-order
|
||||
|
||||
.PHONY: build
|
||||
build:
|
||||
cargo build --release --target wasm32-unknown-unknown --no-default-features --features wasm
|
||||
wasm-bindgen --target web --out-dir build target/wasm32-unknown-unknown/release/breakout.wasm
|
||||
|
||||
.PHONY: publish
|
||||
publish:
|
||||
rsync --verbose --checksum --recursive --safe-links --delete --progress build/ root@lab:/www/games/breakout
|
||||
Loading…
Reference in a new issue