summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 64ae400..e55eb63 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,8 @@
-camlet.debug: meson.build main.c
- @if [ '!' '-d' debug ]; then meson setup debug; fi
+camlet.debug: meson.build main.c debug/setup
meson compile -C debug
ln -sf debug/camlet camlet.debug
cp debug/compile_commands.json .
+debug/setup:
+ rm -rf debug
+ meson setup debug
+ touch debug/setup