diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -31,6 +31,7 @@ $(OBJDIR): clean: rm -rf $(OBJDIR) + rm -f compile_commands.json fclean: clean rm -f $(NAME) @@ -41,4 +42,8 @@ re: fclean all test: $(NAME) $(MAKE) -C tests +compile_commands.json: $(SRCS:%=$(SRCDIR)/%) + @echo '$(foreach src,$(SRCS),{"directory":"$(CURDIR)","command":"$(CC) $(CFLAGS) -I $(INCDIR) -c $(SRCDIR)/$(src)","file":"$(SRCDIR)/$(src)"})' \ + | jq -s '.' > $@ + .PHONY: all clean fclean re test |
