-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
27 lines (21 loc) · 1.08 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
.PHONY: help
.DEFAULT_GOAL:=help
help: ## display this help
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n\nTargets:\n"} /^[a-zA-Z_-]+:.*?##/ { printf " \033[36m%-8s\033[0m %s\n", $$1, $$2 } END{print ""}' $(MAKEFILE_LIST)
run: channelServer ## build and run whole stack with docker/nginx
docker compose up --build
serve_files_for_local: ## serve static files on localhost:8000
python3 -m http.server
serve_channelServer_for_local: channelServer ## channelServer on port localhost:9800
docker compose run --rm --service-ports channel-server
src/data/classicspells.json:
curl -o $@ "https://raw.githubusercontent.com/lewster32/archaos/main/assets/data/classicspells.json"
src/data/classicunits.json:
curl -o $@ "https://raw.githubusercontent.com/lewster32/archaos/main/assets/data/classicunits.json"
channelServer:
git clone https://github.com/calaldees/channelServer.git
shell_debug_minify:
docker build --tag debug_minify --target build .
docker run --rm -it debug_minify /bin/sh
cloc: ## cloc - lines of code count
cloc --vcs=git --exclude-dir=data