forked from gonengazit/Celia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
35 lines (25 loc) · 758 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
.PHONY: run all lint build clean format test
project_name := "Celia"
run:
@love . --test
all: format lint test build
# run specific love version
# setup environment variable with path to love executable first
lint:
luacheck .
format:
@sed -i s/0x1234\.abcd/0x1234abcd/g test.lua
stylua .
@sed -i s/0x1234abcd/0x1234\.abcd/g test.lua
clean:
@echo "deleting \"build/${project_name}.love\" ..."
@rm -f build/${project_name}.love
test:
# todo implement test running
build: clean
@echo "building \"build/${project_name}.love\" ..."
@zip -9 -r build/"${project_name}".love ./nocart.p8
@zip -9 -r [email protected] build/${project_name}.love .
run_build:
@echo "executing \"build/${project_name}.love\" ..."
@love build/${project_name}.love