netatmo-algo/justfile

50 lines
1.1 KiB
Makefile
Raw Normal View History

2022-02-11 19:03:22 +01:00
name := "freling_netatmo_algo"
2022-02-18 12:49:02 +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 21:18:50 +01:00
params := "lenna.png 0 0 64 64 100 100 100 64 80 200 70 220"
2022-02-15 13:17:14 +01:00
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
2022-02-15 21:18:50 +01:00
memcheck: build-cli
valgrind --leak-check=yes {{exe_cli}} {{params}}
massif: build-cli
valgrind --tool=massif --massif-out-file=pipeline.massif {{exe_cli}} {{params}}
ms_print pipeline.massif
callgrind: build-cli
valgrind --tool=callgrind {{exe_cli}} {{params}}
2022-02-17 23:15:45 +01:00
archive: #generate-build
2022-02-18 12:49:02 +01:00
git clean -xf src/
rm --force {{exe_cli}} {{exe_gui}}
2022-02-11 19:03:22 +01:00
git archive --add-file={{build_sh}} --output={{name}}.zip --prefix={{name}}/ HEAD