-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (22 loc) · 878 Bytes
/
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
SRC = $(wildcard src/*.p8.lua) src/names.txt tools/loaf.py tools/rp8.py
all: build/rp8_min.p8.png build/rp8_debug.p8
build/rp8_min.p8.png: $(SRC) src/rp8.p8
mkdir -p build
python3 shrinko8/shrinko8.py --minify --focus-compressed --count --preserve "$$(tr '\n' ',' < src/names.txt)" \
--script tools/rp8.py src/rp8.p8 $@
build/rp8_debug.p8: $(SRC) src/rp8.p8
mkdir -p build
python3 shrinko8/shrinko8.py --minify --count --no-minify-rename --no-minify-spaces \
--no-minify-lines --no-minify-comments --script tools/rp8.py src/rp8.p8 $@
lint:
python3 shrinko8/shrinko8.py --lint --script tools/rp8.py src/rp8.p8
build/user_guide.html: $(wildcard docs/*.md)
mkdir -p build
mkdocs build
htmlark site/print_page/index.html -o build/user_guide.html
docs: build/user_guide.html
clean:
rm -rf build site
watch:
ls $(SRC) src/rp8.p8 | entr make
.PHONY: clean watch