Re: Remove whitespace from the output of foreach

2012-10-19 Thread Reinier Post
On Fri Oct 19 01:33:13 2012, psm...@gnu.org (Paul Smith) wrote: > On Thu, 2012-10-18 at 21:32 -0700, Rakesh Sharma wrote: > > sp ;= $(empty) $(empty) > > Change this to ":=" instead of ";=" and it will work. A lint for make

Re: help with implicit rules

2012-11-20 Thread Reinier Post
On Tue Nov 20 11:04:25 2012, kosala.atapa...@gmail.com (Kosala Atapattu) wrote: > Hi All, [...] > [...] > %.html : %.page > echo $< > perl compile_page.pl -T template/main.tpl -o $@ $< > > > > What did I do wrong here.. according to the doc I should be able to do this > rt? L

Re: how to make dirs without races

2013-03-05 Thread Reinier Post
rg/bugs/download.php?file_id=21887 Discussed here: http://savannah.gnu.org/bugs/?30381 Since I wrote it, I've been looking for use cases other than my own. They seem to be pretty rare. On the other hand, the patch is rather simple; it may even make pattern rules easier to und

Re: .PHONY non-rules

2013-03-22 Thread Reinier Post
On Fri Mar 22 01:37:01 2013, ma...@lysator.liu.se (Magnus Fromreide) wrote: > [...] > I couldn't find anything about .PHONY making it's dependants into > targets in the manual. Um, that's the whole purpose of a .PHONY rule. http://www.gnu.org/software/make/manual/html_node/Phony-Targets.html

Re: combining $(eval) with $(shell)

2013-09-10 Thread Reinier Post
plicitly included makefile fragment. This offers a cleaner syntax and a few more options, e.g. making generation conditional on the generating script: include vars.mk vars.mk: vars.sh $< > $@ || rm -f $@ -- Reinier Post http://www.win.tue.nl/~rp/ ___ Help-make mailing list Help-make@gnu.org https://lists.gnu.org/mailman/listinfo/help-make

Re: Indirection Operators in the Command section of a makefile doesnt work.

2014-02-03 Thread Reinier Post
tackoverflow.com/questions/21442674/makefile-with-shell-usr-bin-r-handling-multilines Someone is trying to use R as $(SHELL) and running into a similar problem with passing multiple lines. -- Reinier Post TU Eindhoven ___ Help-make mailing list Help-ma

Re: Diagramming a makefile?

2014-04-14 Thread Reinier Post
kefile (the rules portion). > > Considering that make is nearing 4 decades, it's hard to believe > that such utilities are not already available. Some are, but it's hard for them to guarantee 100% accuracy (leaving aside the issue of dynamic rule generation), as makefile syntax ma

Re: Diagramming a makefile?

2014-04-15 Thread Reinier Post
he rule invocations executed. Which means variables are expanded, inferences followed, unused targets and rules omitted. So the resulting graphs will usually be very different, especially when variables, implicit rules, include, eval, etc. are used. > Regards, > > Rakesh -- Reinier

a syntax for multitarget rules

2014-11-13 Thread Reinier Post
eral case. For instance: a Makefile may generate and include another Makefile that only includes this special target (for rules appearing in the first Makefile) on nights with a full moon. I would much prefer replacing the normal separator symbol ':' (in a backwards compatibl

Re: make (e=267): The directory name is invalid.

2014-11-19 Thread Reinier Post
ke/ unpack it and install it using 'make install'. Then retry whetever you were doing. -- Reinier Post ___ Help-make mailing list Help-make@gnu.org https://lists.gnu.org/mailman/listinfo/help-make

Re: Recursive implicit rule chain sometimes works

2014-11-19 Thread Reinier Post
re --prefix=$HOME instead (and put $HOME/bin in your $PATH). -- Reinier Post ___ Help-make mailing list Help-make@gnu.org https://lists.gnu.org/mailman/listinfo/help-make

Re: Recursive implicit rule chain sometimes works

2014-11-19 Thread Reinier Post
As you can see, this isn't hard, and it probably won't break anything, either, unless you have lots of complicated homegrown Makefiles. -- Reinier Post (not speaking for the make project, just a user) ___ Help-make mailing list Help-make@

Re: Target driven rule building

2015-01-12 Thread Reinier Post
or link how > this can be implemented in a nice (manageable) way is appreciated. The problem has been discussed on this list several times, but I don't recall seeing a good solution. So my suggestion is that you scan the archives to see how your idea relates to what others have already

Re: make is setting exit code to 0 when gcc command fails

2015-02-10 Thread Reinier Post
;re checking it like this: %.o: %.c $(CC) -c -o $@ $< @echo $? That won't work: each line will use a separate shell invocation, unless .ONESHELL: is specified. -- Reinier Post ___ Help-make mailing list Help-make@gnu.org https://lists.gnu.org/mailman/listinfo/help-make

Re: Conditional include directories

2015-08-04 Thread Reinier Post
On Tue Aug 4 13:24:51 2015, step...@wanderinghorse.net (Stephan Beal) wrote: > On Mon, Aug 3, 2015 at 6:38 PM, Mike Gran wrote: > > > On a 32-bit box, I need to add it as > > -I/stage2/lib/dbus-1.0/include > > > > One a 64-bit box, I need to add it as > > -I/stage2/lib64/dbus-1.0/include [...]

Re: Conditional include directories

2015-08-04 Thread Reinier Post
n the `getconf' command delivers output different than either 32 or 64. > > # another method could be to invoke the "uname -m" command. How portable is this software supposed to be? uname exists on all the Unixy systems I've used; I'm not sure

Re: how to use a different /bin/sh with GNU Make?

2015-10-13 Thread Reinier Post
/#' should do the trick. If you don't want to modify make itself, that is. -- Reinier Post TU Eindhoven ___ Help-make mailing list Help-make@gnu.org https://lists.gnu.org/mailman/listinfo/help-make

Re: What should an $(add) function look like?

2015-10-31 Thread Reinier Post
d be added to directly call the main() function of arbitrary compiled executables so as to avoid the fork(). > Regards, > > Tim -- Reinier Post ___ Help-make mailing list Help-make@gnu.org https://lists.gnu.org/mailman/listinfo/help-make

Re: GnuMake's debug output sometimes incorrect for pattern rules?

2016-06-07 Thread Reinier Post
On Wed Apr 20 10:02:03 2016, grothausmann.ro...@mh-hannover.de (Grothausmann, Roman Dr.) wrote: > Dear mailing list members, [...] > > However, GnuMakes debug output seems to yield different dependencies > depending on whether a file already exists or not, see description > in https://github.com

Re: Quietly and eagerly deleting intermediate files

2017-01-10 Thread Reinier Post
runs differ by using different argument values or environment variable values, I incorporate those values into the target names. It's a hassle and it isn't pretty, but it means you don't need tricks to override make's built-in logic on when to remake files. -- Reinier Post __