tiny-ecs-playdate-template/Makefile

16 lines
416 B
Makefile

all: preprocess
pdc --skip-unknown src Game.pdx
preprocess:
find ./src -name '*.lua2p' | xargs -L1 -I %% lua lib/preprocess-cl.lua %%
check: preprocess
stylua -c --indent-type Spaces src/
luacheck -d --globals tiny T Arr Maybe TextStyle --codes src/ --exclude-files src/test/ src/generated/
test: check
(cd src; find ./test -name '*.lua' | xargs -L1 -I %% lua %% -v)
lint:
stylua --indent-type Spaces src/