netatmo-algo/justfile
Fabien Freling 1cb30b1ca7 add gui
2022-02-13 00:55:17 +01:00

35 lines
671 B
Makefile

name := "freling_netatmo_algo"
exe_cli := "./packing_cli"
exe_gui := "./packing_gui"
build_sh := "build.sh"
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
build-cli:
tup {{exe_cli}}
build-gui: build-raylib
tup {{exe_gui}}
run-cli: build-cli
{{exe_cli}} lenna.png 0 0 0 0
run-gui: build-gui
nixGL {{exe_gui}}
generate-build:
git clean -xf src/
rm --force {{exe_cli}} {{exe_gui}}
tup generate {{build_sh}}
debug: build-cli
lldb {{exe_cli}}
archive: generate-build
git archive --add-file={{build_sh}} --output={{name}}.zip --prefix={{name}}/ HEAD