From: Arran Cudbard-Bell Date: Mon, 27 Jun 2022 20:17:36 +0000 (-0500) Subject: Add phony target for compile commands X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6aca559ec636d4ffe373298da10f02343ba4430e;p=thirdparty%2Ffreeradius-server.git Add phony target for compile commands --- diff --git a/Makefile b/Makefile index 7e18df20b8e..81a1179fa1b 100644 --- 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. #