netatmo-algo/justfile

38 lines
751 B
Makefile
Raw Normal View History

2022-02-11 19:03:22 +01:00
name := "freling_netatmo_algo"
2022-02-12 15:34:35 +01:00
exe_cli := "./packing_cli"
exe_gui := "./packing_gui"
2022-02-11 19:03:22 +01:00
build_sh := "build.sh"
2022-02-15 13:17:14 +01:00
params := "lenna.png 0 0 64 64 100 100 200 164 80 200 150 420"
2022-02-12 15:34:35 +01:00
build-raylib:
cd src/3rd-party/raylib-4.0.0/src && \
make CC=clang \
PLATFORM=PLATFORM_DESKTOP \
RAYLIB_MODULE_AUDIO=FALSE \
RAYLIB_MODULE_MODELS=FALSE
2022-02-11 19:03:22 +01:00
2022-02-12 15:34:35 +01:00
build-cli:
tup {{exe_cli}}
build-gui: build-raylib
tup {{exe_gui}}
run-cli: build-cli
2022-02-15 13:17:14 +01:00
{{exe_cli}} {{params}}
2022-02-12 15:34:35 +01:00
run-gui: build-gui
2022-02-15 13:17:14 +01:00
nixGL {{exe_gui}} {{params}}
2022-02-11 19:03:22 +01:00
generate-build:
2022-02-11 20:06:26 +01:00
git clean -xf src/
2022-02-12 15:34:35 +01:00
rm --force {{exe_cli}} {{exe_gui}}
2022-02-11 19:03:22 +01:00
tup generate {{build_sh}}
2022-02-12 15:34:35 +01:00
debug: build-cli
2022-02-15 13:17:14 +01:00
lldb {{exe_cli}} {{params}}
2022-02-11 19:03:22 +01:00
archive: generate-build
git archive --add-file={{build_sh}} --output={{name}}.zip --prefix={{name}}/ HEAD