Re: On generating compilation databases

2023-01-01 Thread Paul Smith
On Tue, 2022-12-06 at 15:56 +0100, Arsen Arsenović wrote: > > > Do you have any implementation ideas? > > > > Not really.  I see no feasible way that that generating > > compile_commands.json could be built into make itself, so it would > > need to be some kind of add-on package.  For people who a

Re: On generating compilation databases

2022-12-18 Thread Karl Berry
Hi Arsen - sorry for the delayed reply. Replying as one of the automake developers, though I know nothing ... src/tangle-main.o \ `test -f 'src/main.cpp' || echo '$(srcdir)/'`src/main.cpp ... which relies on a shell construct, making it hard to 'deduce' from the point of a pure

Re: On generating compilation databases

2022-12-06 Thread Arsen Arsenović
Hi, Paul Smith writes: > It's really not at all clear what you are talking about here, until far > down your email where finally you say: > >> ... dumped into compile_commands.json. > > and we discover you're trying to build a compile_commands.json file. Ah - sorry, I should've known better tha

Re: On generating compilation databases

2022-12-06 Thread Paul Smith
On Mon, 2022-12-05 at 23:09 +0100, Arsen Arsenović wrote: > Evening, > > Could, and how should, (auto)make be instructed to output compile > commands? It's really not at all clear what you are talking about here, until far down your email where finally you say: > ... dumped into compile_commands

On generating compilation databases

2022-12-05 Thread Arsen Arsenović
Evening, Could, and how should, (auto)make be instructed to output compile commands? Following the example of ninja[1], I tried to teach make to generate makefile commands; however, I ran into a snag. Automake generates: $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(tangle_C