Re: Create compile_commands.json for integration with other build systems and IDEs

2018-07-29 Thread Duane Griffin
On Mon, Jul 30, 2018 at 11:26 AM, Paul Smith wrote: > On Mon, 2018-07-30 at 10:44 +1200, Duane Griffin wrote: >> I am not a GNU make developer but I am pretty sure that it is not >> possible to do this generically within make itself. Make does not >> work at that level. It

Re: Create compile_commands.json for integration with other build systems and IDEs

2018-07-29 Thread Duane Griffin
Hi Doron, I am not a GNU make developer but I am pretty sure that it is not possible to do this generically within make itself. Make does not work at that level. It just runs shell code, it doesn't understand that a particular command is, for example, invoking clang and should be added to a compil

Re: Switching from relative paths to absolute directory specifications in make scripts?

2017-07-05 Thread Duane Griffin
On Thu, Jul 6, 2017 at 1:34 AM, SF Markus Elfring wrote: > This test result seems to show that it can make a significant difference > if such a target was specified by a relative or absolute path. > (I would expect that these specifications will refer to the same file.) Keep in mind that targets

Re: Management for relative paths in global build parameters

2017-06-07 Thread Duane Griffin
Hi Markus, I'm not entirely sure what you are asking, so apologies if I'm telling you things you already know... Relative paths are fine when including makefiles from sub-directories. What matters is that targets use *consistent* paths. You can't safely refer to the same target with a relative an