summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDirk-Jan C. Binnema <djcb@djcbsoftware.nl>2023-01-28 15:57:02 +0200
committerDirk-Jan C. Binnema <djcb@djcbsoftware.nl>2023-01-29 10:13:29 +0200
commit3e0c7ecdd97b2ec8528650328064693e9fff01ce (patch)
tree867d3c413414b2a67991a6af867c06d02cb1818f /Makefile
parent29e6c21ed8945936774befae8e78002cb707759f (diff)
build: symlink to compile_commands.json to topdir
This allows eg. rmsbolt to work OOB
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 0994288..a1b638f 100644
--- a/Makefile
+++ b/Makefile
@@ -44,6 +44,7 @@ endif
# make clean all MESON_FLAGS="-Db_sanitize=thread" CXX=clang++ CC=clang
all: $(BUILDDIR)
@$(NINJA) -C $(BUILDDIR) $(VERBOSE)
+ @ln -sf $(BUILDDIR)/compile_commands.json $(CURDIR) || /bin/true
$(BUILDDIR):
@$(MESON) $(MESON_FLAGS) $(BUILDDIR)