-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
46 lines (32 loc) · 1.57 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
NAME=pakemon
#TODO: build switch with lovepotion
.PHONY: help run clean setup
help: ## Show this help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
setup: ## Install dev-dependencies
pip3 install makelove
run: ## Run pakemon, locally, with full test-net & code-debugging/hot-reloading
cd tools; docker-compose up -d && sleep 3; PAKEMON_DEV=1 love ../src; docker-compose down
run-real: ## Run pakemon, locally, no docker-net, on real local bettercap (good for testing wifi, etc)
cd tools; PAKEMON_DEV=1 love ../src
run-light: ## Run just pakemon, with no dev-tools
love src
clean: ## Delete all output files
rm -rf build
web: build/web ## Build for the web
linux: build/appimage ## Build for Linux
mac: build/macos/pakemon-macos.zip ## Build for MacOS
win: build/win64/pakemon-win64.zip ## Build for Windows
deploy: build/web ## Deploy to https://pakemon.surge.sh
npx surge build/web pakemon.surge.sh
build/web:
cd src && makelove lovejs --config ../tools/makelove.toml
cd build/lovejs && unzip pakemon-lovejs.zip && mv pakemon ../web && cd .. && rm -rf lovejs && cp ../tools/template.html web/index.html
build/appimage:
cd src && makelove appimage --config ../tools/makelove.toml
build/macos/pakemon-macos.zip:
cd src && makelove macos --config ../tools/makelove.toml
build/win32/pakemon-win32.zip:
cd src && makelove win32 --config ../tools/makelove.toml
build/win64/pakemon-win64.zip:
cd src && makelove win64 --config ../tools/makelove.toml