From 342ba9f696861a19ab728571589019174db173cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 20 Sep 2022 09:46:43 +0200 Subject: dev: add mbuild to simply compile meson projects in build directory --- shellrc.d/dev | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/shellrc.d/dev b/shellrc.d/dev index d14211b..7815658 100644 --- a/shellrc.d/dev +++ b/shellrc.d/dev @@ -7,3 +7,10 @@ memcheck() { massif() { valgrind --tool=massif "$@" } + +mbuild() { + if [ ! -d "build" ]; then + meson setup build + fi + meson compile -C build "$@" +} -- cgit v1.2.3