mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-21 21:46:15 +02:00
67d231c046
This reverts commit619eeb658a
, reversing changes made to1af94bf471
.
11 lines
369 B
Makefile
11 lines
369 B
Makefile
compile-commands-json-files :=
|
|
|
|
define write-compile-commands
|
|
_srcs := $$(sort $$(foreach src, $$($(1)_SOURCES), $$(src)))
|
|
|
|
$(1)_COMPILE_COMMANDS_JSON := $$(addprefix $(buildprefix), $$(addsuffix .compile_commands.json, $$(basename $$(_srcs))))
|
|
|
|
compile-commands-json-files += $$($(1)_COMPILE_COMMANDS_JSON)
|
|
|
|
clean-files += $$($(1)_COMPILE_COMMANDS_JSON)
|
|
endef
|