netatmo-algo/justfile

35 lines
681 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-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
{{exe_cli}} lenna.png 0 0 0 0
run-gui: build-gui
2022-02-13 22:07:26 +01:00
nixGL {{exe_gui}} lenna.png
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
lldb {{exe_cli}}
2022-02-11 19:03:22 +01:00
archive: generate-build
git archive --add-file={{build_sh}} --output={{name}}.zip --prefix={{name}}/ HEAD