-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
56 lines (40 loc) · 1.64 KB
/
Makefile
File metadata and controls
56 lines (40 loc) · 1.64 KB
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
47
48
49
50
51
52
53
54
55
56
.PHONY: dist installer lint check
default: run
clean:
@rm -rf build
@rm -rf dist
build: clean
@mkdir -p build
@tar xvf `ls sol*player*` -C build
run:
../engine/install/player/bin/player --premount ../engine/install/player/share/assets00.zip --premount ./assets01
gdb:
gdb --args ../engine/install/player/bin/player --premount ../engine/install/player/share/assets00.zip --premount ./assets01
valgrind:
valgrind --tool=memcheck --leak-check=full --track-origins=yes --exit-on-first-error=no --error-exitcode=1 ../engine/install/player/bin/player --premount ../engine/install/player/share/assets00.zip --premount ./assets01
dist/asteroids/share/assets01.zip:
@mkdir -p dist/asteroids/share
@cd assets01 && zip -9 -r ../dist/asteroids/share/assets01.zip .
dist/asteroids:
@mkdir -p dist/asteroids/
@cp -a ../engine/install/player/* dist/asteroids/
$(MAKE) dist/asteroids/share/assets01.zip
dist/asteroids.zip: dist/asteroids
@cd dist/asteroids && zip -9 -r ../asteroids.zip .
dist/asteroids.tar.xz: dist/asteroids
@cd dist/asteroids && tar cJf ../asteroids.tar.xz .
dist/asteroids.tar.gz: dist/asteroids
@cd dist/asteroids && tar cfz ../asteroids.tar.gz .
#dist/installer: dist/asteroids.tar.gz
# @echo building installer
# cat installer.sh dist/asteroids.tar.gz > dist/installer.sh
# chmod +x dist/installer.sh
dist/asteroids.run: dist/asteroids
@../makeself/makeself.sh dist/asteroids dist/asteroids.run "Asteroids Demo by Darryl T. Agostinelli" ./bin/player
installer: dist/asteroids.run
luacheck:
@echo "Linting Lua files..."
@if command -v luacheck >/dev/null 2>&1; then \
luacheck assets01/*.lua --codes --ranges || true; \
fi
lint: luacheck