]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Add phony target for compile commands
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 27 Jun 2022 20:17:36 +0000 (15:17 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 28 Jun 2022 12:38:06 +0000 (07:38 -0500)
Makefile

index 7e18df20b8e43484fedbd9c11ccd0fca693cc136..81a1179fa1bc35c2399a7789e5a81fde72b5b248 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -342,6 +342,12 @@ check-includes:
 TAGS:
        etags `find src -type f -name '*.[ch]' -print` > $@
 
+.PHONY: compile_commands.json
+compile_commands.json:
+       @echo '[' > $@ ; \
+       find ./build/objs/src -type f -name '*.cc.json' -exec cat {} \; >> $@;\
+       echo ']' >> $@
+
 #
 #  Make test certificates.
 #