-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
46 lines (33 loc) · 1010 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
synthein_version = devel
love_version = 11.4
env = SYNTHEIN_VERSION=$(synthein_version) LOVE_VERSION=$(love_version)
# Building commands
love: rust
$(env) scripts/package-love.sh
appimage: love
$(env) scripts/package-linux-appimage.sh
macos: love
$(env) scripts/package-macos.sh
windows: love
$(env) scripts/package-windows.sh
rust:
cargo build --release
cp target/release/libsyntheinrust.so src/syntheinrust.so
# Maintenance commands
check:
find src -name '*.lua' -not -path 'src/vendor/*' | xargs wc -l | sort -rg
find src -name '*.lua' -exec luac -p {} + && echo "No problems found"
clean:
rm -rf build/
rm -f src/*.so
dep:
scripts/dependency-graph.lua --dot src/main.lua | dot -T png | display
map:
dot -T png TaskMap.dot >TaskMap.png
display TaskMap.png
luacheck:
find src -name '*.lua' -not -path 'src/vendor/*' -exec luacheck --no-unused-args {} +
test:
printf '\n' | love src --unit-tests
test/init.sh
.PHONY: appimage check clean dep love luacheck macos rust test windows