Feature Request: Add timestamps to `--trace`

2016-06-29 Thread Adrian Muresan
I request that timestamps be added to the output when using `--trace` option. There is a hack to added timestamps to every STDOUT of make http://stackoverflow.com/questions/37623123/windows-batch-how-to-add-timestamp-while-redirecting-stdout-to-file but that introduces overhead. I think it woul

How to write rule that gets all items referenced in a given makefile

2016-07-05 Thread Adrian Muresan
Is there a built-in function to extract all the prerequisites for target in a makefile? I could probably make a rule that will parse the makefile as a textfile from the shell but since `make` already parses the targets and prereqs I'm hoping there's a built-in way.

Re: How to write rule that gets all items referenced in a given makefile

2016-07-05 Thread Adrian Muresan
I hoped to spare you details but here goes: I have another `make`-like tool that produces an XML as an artifact after parsing my makefile which I'll then further process with Python. It'd simplify things for me - a lot - if I could have `make` consider every single prerequisite to be an actua

Re: How to write rule that gets all items referenced in a given makefile

2016-07-05 Thread Adrian Muresan
Yes, I am using it and yes the info it gives is very useful, parseable and excellent in general. The problem is that this information is only outputted by `make` AFTER the makefile is finished executing whereas I need to access this information - via some function that apparently doesn't exist

Re: How to write rule that gets all items referenced in a given makefile

2016-07-08 Thread Adrian Muresan
ed this on Linux and it doesn't work http://stackoverflow.com/questions/38250056/gnu-make-terminal-rules-and-keyword-null/38252249#comment63925596_38252249 From: Tim Murphy Sent: Wednesday, July 6, 2016 12:38 AM To: Adrian Muresan Cc: help-make@gnu.org Subj

--print-data-base: how to force all filenames to have full path

2016-07-08 Thread Adrian Muresan
Is there anything I can do, short of modifying make, to force it to output the full path for all files listed in the `--print-data-base` section? Here's a fragment of what I see: .obj/moc_guardedpropertychangetransition.o: .moc/moc_guardedpropertychangetransition.cpp # Implicit rule search h

Re: --print-data-base: how to force all filenames to have full path

2016-07-08 Thread Adrian Muresan
to get the full path. From: Philip Guenther Sent: Friday, July 8, 2016 5:14 PM To: Adrian Muresan Cc: help-make@gnu.org Subject: Re: --print-data-base: how to force all filenames to have full path On Fri, Jul 8, 2016 at 2:06 PM, Adrian Muresan wrote: > Is there

Documentation: Format of `--print-data-base`

2016-07-11 Thread Adrian Muresan
What is the format of the `--print-data-base` entry? This is one example entry. What do the lines below "Successfully updated mean"? applinkmenumodel.o: applinkmenumodel.cpp # Implicit rule search has been done. # Implicit/static pattern stem: 'applinkmenumodel' # Last modified 2016-07-11 10:

How to resolve implicit dependencies

2016-07-14 Thread Adrian Muresan
I have a makefile(s) that runs fine with --jobs=1 but when I run with --jobs=X (X>1) it fails. I know exactly why; it's because I have entries like this: t1: mkdir d1 create_makefile.bat > ./d1/makefile t2: cd d1 make -f makefile Target t2 depends on t1 but that's not st

GNU make - "file has not been updated" but it definitely has

2016-08-07 Thread Adrian Muresan
I'm building my `make` project using `--print-data-base` and then parsing the output database for use in another step. The database contains ALL targets defined in the makefile even if one or more were not built. Thankfully, in the database section of `make` output, whether a given target was