GNU-make 4. Running an example for “Loading Dynamic Objects”

2014-08-30 Thread Pierre LINDENBAUM
(Cross posted on SO: http://stackoverflow.com/questions/25583351 ) Hi all, I tried to run the simple example below , a $(hello string) function. It works if I first compile the 'hello.so'. But it doesn't work if I run it as the example provided here (with a load directive) http://www.gnu.org/sof

Re: GNU-make 4. Running an example for "Loading Dynamic Objects"

2014-08-31 Thread Pierre Lindenbaum
Message: 1 Date: Sat, 30 Aug 2014 19:02:32 +0200 (CEST) From: "Pierre LINDENBAUM" To: help-make@gnu.org Subject: GNU-make 4. Running an example for ?Loading Dynamic Objects? (Cross posted on SO: http://stackoverflow.com/questions/25583351 ) Hi all, I tried to run the simple exa

is $(file ) thread safe when using option -j ?

2014-09-12 Thread Pierre Lindenbaum
when using $(file ) http://www.gnu.org/software/make/manual/make.html#File-Function . If two targets, built in parallel with option -j, both call $(file >>log.txt, Building $@) is $file thead safe or is it possible to obtain a mixture of both messages in the file log.txt ? Pierre

Re: Recursive implicit rules without explicit intermediates?

2015-01-15 Thread Pierre Lindenbaum
Hi Luke, I use Make to run my bioinformatics workflows. As far as I understand your question, you're trying to generate a makefile for a complex structured model. My makefile itself is generated with a XML file describing the experiment ... te

patch for a new function $(md5 )

2015-01-23 Thread Pierre Lindenbaum
RCHANTABILITY or FITNESS FOR +A PARTICULAR PURPOSE. See the GNU General Public License for more details. + +You should have received a copy of the GNU General Public License along with +this program. If not, see <http://www.gnu.org/licenses/>. + +Orignal C++ code from Aaron Ucko / NCBI(Nation

source code: src to find (target/prerequisites/recipes)

2015-07-22 Thread Pierre Lindenbaum
Hi all, is there a simple way/place in the code of GNU make where I can find/extract the * target * prerequisite(s) * recipe(s) ? for example in job.c / start_job_command (would it be the right place ?) I whish I could `printf` all those strings. Thank you, Pierre __

Re: source code: src to find (target/prerequisites/recipes)

2015-07-22 Thread Pierre Lindenbaum
On 07/22/2015 05:14 PM, Kenneth Adam Miller wrote: ... reading the actual makefile itself? Did you know that you can use remake -x to get a trace of what make is trying to build? You can also do a dry run to see what all make would do with make -n. Thanks for the answer, but dry-run won't p

Re: source code: src to find (target/prerequisites/recipes)

2015-07-22 Thread Pierre LINDENBAUM
rc to find (target/prerequisites/recipes) To: "Pierre Lindenbaum" Cc: help-make@gnu.org Date: Wednesday, July 22, 2015, 11:14 AM ... reading the actual makefile itself? Did you know that you can use remake -x to get a trace of what make is trying to build? You can also do a dry

Re: source code: src to find (target/prerequisites/recipes)

2015-07-22 Thread Pierre LINDENBAUM
Thanks ! It looks like I can parse the output of ‘--print-data-base’ to get what I need. Many thanks ! P. Welcome. There is also a database option. But you may have looked into that also. Here is what the manual has: ‘-p’ ‘--print-data-base’ Print the data base (rules and variable values) t

Re: source code: src to find (target/prerequisites/recipes)

2015-07-24 Thread Pierre Lindenbaum
> Thanks ! > It looks like I can parse the output of ‘--print-data-base’ to get what I need. > Many thanks ! at the end, I hacked the source code of make. If anyone is interested I pushed my patch on github: https://github.com/lindenb/xml-patch-make it generates a XML-based graph of my M

Re: GNU Make parser and dependency generation.

2016-03-18 Thread Pierre Lindenbaum
My problem statement is, I need to get all the rules information from Makefile in a separate data structure which will be latter used by our program. I don't need to execute the project and create any executables. I just need Target, Dependency, Command information which will involve parsing Mak

Re: Looking for nastiest makefile that uses function calls to > make the makefile in memory...

2017-03-18 Thread Pierre LINDENBAUM
A divide+conquer makefile: http://plindenbaum.blogspot.fr/2014/12/divide-and-conquer-in-makefile.html P. From: "Brian Cowan" To: "make-help mailing list" Subject: Looking for nastiest makefile that uses function calls to make themakefile in memory... Message-ID: C