<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-1736</id>
	<title>Nabble - Gnu - Make</title>
	<updated>2009-12-12T01:09:15Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/Gnu---Make-f1736.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Gnu---Make-f1736.html" />
	<subtitle type="html">Gnu Make is a tool which controls the generation of executables and other non-source files of a program from the program's source files. Gnu - Make home is &lt;a href=&quot;http://www.gnu.org/software/make/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26756015</id>
	<title>[bug #28126] bug with Windows interface: echo. in command only works when redirected</title>
	<published>2009-12-12T01:09:15Z</published>
	<updated>2009-12-12T01:09:15Z</updated>
	<author>
		<name>Eli Zaretskii-4</name>
	</author>
	<content type="html">&lt;br&gt;Follow-up Comment #3, bug #28126 (project make):
&lt;br&gt;&lt;br&gt;I omitted those commands on purpose: they are executable programs on some
&lt;br&gt;older Windows versions, not shell built-ins.
&lt;br&gt;&lt;br&gt;But if you, or someone else, can present a real-life use-case where it is
&lt;br&gt;good to have them as built-ins, I will consider changing my mind.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; _______________________________________________________
&lt;br&gt;&lt;br&gt;Reply to this item at:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;lt;&lt;a href=&quot;http://savannah.gnu.org/bugs/?28126&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://savannah.gnu.org/bugs/?28126&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&amp;nbsp; Message sent via/by Savannah
&lt;br&gt;&amp;nbsp; &lt;a href=&quot;http://savannah.gnu.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://savannah.gnu.org/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Bug-make mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26756015&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Bug-make@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/bug-make&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/bug-make&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Make---Bugs-f1738.html&quot; embed=&quot;fixTarget[1738]&quot; target=&quot;_top&quot; &gt;Gnu - Make - Bugs&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-bug--28126--bug-with-Windows-interface%3A-echo.-in-command-only-works-when-redirected-tp26569645p26756015.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26754997</id>
	<title>[bug #28126] bug with Windows interface: echo. in command only works when redirected</title>
	<published>2009-12-11T20:49:24Z</published>
	<updated>2009-12-11T20:49:24Z</updated>
	<author>
		<name>Eli Zaretskii-4</name>
	</author>
	<content type="html">&lt;br&gt;Follow-up Comment #2, bug #28126 (project make):
&lt;br&gt;&lt;br&gt;[Submitted by J. David Bryan, jdbryan at acm dot org]
&lt;br&gt;&lt;br&gt;Would you consider adding the &amp;quot;move,&amp;quot; &amp;quot;popd,&amp;quot; &amp;quot;pushd,&amp;quot; and &amp;quot;start&amp;quot; built-in
&lt;br&gt;commands as well?
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; _______________________________________________________
&lt;br&gt;&lt;br&gt;Reply to this item at:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;lt;&lt;a href=&quot;http://savannah.gnu.org/bugs/?28126&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://savannah.gnu.org/bugs/?28126&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&amp;nbsp; Message sent via/by Savannah
&lt;br&gt;&amp;nbsp; &lt;a href=&quot;http://savannah.gnu.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://savannah.gnu.org/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Bug-make mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26754997&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Bug-make@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/bug-make&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/bug-make&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Make---Bugs-f1738.html&quot; embed=&quot;fixTarget[1738]&quot; target=&quot;_top&quot; &gt;Gnu - Make - Bugs&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-bug--28126--bug-with-Windows-interface%3A-echo.-in-command-only-works-when-redirected-tp26569645p26754997.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26753469</id>
	<title>Re: was: RE: auto-dep cannot possibly work?</title>
	<published>2009-12-11T16:06:42Z</published>
	<updated>2009-12-11T16:06:42Z</updated>
	<author>
		<name>David Boyce</name>
	</author>
	<content type="html">On Fri, Dec 11, 2009 at 4:22 PM, Mark Galeck (CW) &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26753469&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mgaleck@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; Hello,  this is about a thread that was here a while ago, where I argued that some &amp;quot;bizarre&amp;quot; cases should be taken care of by auto-dependency generation.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I want to say, that after chasing this wild goose for a while, I came to understand that it is not feasible in principle to cover the case of new header files appearing, without changing existing sources.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; What is more, I finally came to understand that Paul was right, of course, that it is up to the developer to edit the makefile, do &amp;quot;make clean&amp;quot; or whatever needs to be done, if they introduce new files without touching existing sources.  Make should not be expected to take care of that.
&lt;br&gt;&lt;br&gt;&amp;gt; Thank you Paul, it is a pleasure to learn from you, even though I am a little slow with it, please excuse that.
&lt;br&gt;&lt;br&gt;A classy touch.
&lt;br&gt;&lt;br&gt;You know, there was something I was going to say back when this thread
&lt;br&gt;was active but everyone seemed a little touchy and I didn't want to
&lt;br&gt;make it worse ... but now that's over and we're all friends I think I
&lt;br&gt;will.
&lt;br&gt;&lt;br&gt;I wish both you and Paul would 'come to understand' that I was right
&lt;br&gt;way back in the early part of the thread, that it is absolutely
&lt;br&gt;&amp;quot;feasible in principle to cover the case of new header files appearing
&lt;br&gt;...&amp;quot; by using the directories themselves as prerequisites. By this I
&lt;br&gt;mean that it's an objectively correct solution. The objection raised,
&lt;br&gt;as I recall, was that people may make any kind of unrelated changes in
&lt;br&gt;include dirs (temp files, backup files) which will trigger
&lt;br&gt;&amp;quot;unnecessary&amp;quot; builds. To which I would say then don't do that - you
&lt;br&gt;must design your structure and process such that you're not searching
&lt;br&gt;directories in which people work all the time. This is not so hard -
&lt;br&gt;for instance you can make a &amp;quot;./include&amp;quot; directory and populate it with
&lt;br&gt;symlinks to the header files where they actually live. &amp;nbsp;Since this dir
&lt;br&gt;exists only to be searched at build time, and nothing really lives
&lt;br&gt;there, it won't get visited much.
&lt;br&gt;&lt;br&gt;A related objection was that even if the change really does reflect a
&lt;br&gt;new header file, it probably won't eclipse an existing one and/or
&lt;br&gt;won't change the resulting binaries. This again is true but the same
&lt;br&gt;can be said about files too. In fact, if you think it out carefully
&lt;br&gt;the analogy between these directories and plain files is almost
&lt;br&gt;perfect. When I modify an existing header file, more often than not
&lt;br&gt;I'm simply adding a new macro or declaration to it. Or I might be
&lt;br&gt;adding comments or updating the copyright to 2010 (reminder to all).
&lt;br&gt;In all these cases make takes an appropriately pessimistic approach -
&lt;br&gt;since it has no way to know the semantic content of the change, it
&lt;br&gt;rebuilds everything that could possibly be affected. And if someone
&lt;br&gt;complained about the changes causing &amp;quot;unneeded&amp;quot; rebuilds, you'd say
&lt;br&gt;either don't make the changes or get used to the rebuilds. When you
&lt;br&gt;use dependencies on directories in search paths make behaves in
&lt;br&gt;precisely the same way - in both cases, in some sense you're getting
&lt;br&gt;unnecessary rebuilds but it's the optimal set given what we know a
&lt;br&gt;priori.
&lt;br&gt;&lt;br&gt;Bottom line, there is a solution to this problem which is both elegant
&lt;br&gt;and 100% correct. It just may not be the answer you want it to be.
&lt;br&gt;Anyway, that's my contention and I'd be interested (and surprised) to
&lt;br&gt;be shown wrong now that the other shouting has died down.
&lt;br&gt;&lt;br&gt;BTW, I don't remember if it came up before but it sounds like ccache
&lt;br&gt;ought to be mentioned in this thread because it can make
&lt;br&gt;determinations based on semantic content and thus partners well with
&lt;br&gt;make. You might want to look into it if you haven't before.
&lt;br&gt;&lt;br&gt;David Boyce
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-make mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26753469&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-make@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/help-make&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/help-make&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Make---Help-f1739.html&quot; embed=&quot;fixTarget[1739]&quot; target=&quot;_top&quot; &gt;Gnu - Make - Help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/auto-dep-cannot-possibly-work--tp26352796p26753469.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26751627</id>
	<title>was:  RE: auto-dep cannot possibly work?</title>
	<published>2009-12-11T13:22:37Z</published>
	<updated>2009-12-11T13:22:37Z</updated>
	<author>
		<name>Mark Galeck (CW)</name>
	</author>
	<content type="html">Hello, &amp;nbsp;this is about a thread that was here a while ago, where I argued that some &amp;quot;bizarre&amp;quot; cases should be taken care of by auto-dependency generation. &amp;nbsp;
&lt;br&gt;&lt;br&gt;I want to say, that after chasing this wild goose for a while, I came to understand that it is not feasible in principle to cover the case of new header files appearing, without changing existing sources. &amp;nbsp;
&lt;br&gt;&lt;br&gt;What is more, I finally came to understand that Paul was right, of course, that it is up to the developer to edit the makefile, do &amp;quot;make clean&amp;quot; or whatever needs to be done, if they introduce new files without touching existing sources. &amp;nbsp;Make should not be expected to take care of that. &amp;nbsp;
&lt;br&gt;&lt;br&gt;Thank you Paul, it is a pleasure to learn from you, even though I am a little slow with it, please excuse that. &amp;nbsp;
&lt;br&gt;&lt;br&gt;Mark
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-make mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26751627&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-make@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/help-make&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/help-make&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Make---Help-f1739.html&quot; embed=&quot;fixTarget[1739]&quot; target=&quot;_top&quot; &gt;Gnu - Make - Help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/auto-dep-cannot-possibly-work--tp26352796p26751627.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26746826</id>
	<title>Re: bug with Windows interface: echo. in command only works when redirected</title>
	<published>2009-12-11T08:00:56Z</published>
	<updated>2009-12-11T08:00:56Z</updated>
	<author>
		<name>Eli Zaretskii</name>
	</author>
	<content type="html">&lt;div class='shrinkable-quote'&gt;&amp;gt; From: &amp;quot;Mark Galeck (CW)&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26746826&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mgaleck@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Date: Sun, 29 Nov 2009 20:31:51 -0800
&lt;br&gt;&amp;gt; Accept-Language: en-US
&lt;br&gt;&amp;gt; acceptlanguage: en-US
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hello, &amp;nbsp;I asked for help on this issue (with GNU make on Windows) on the help-make list, and Paul Smith says, this is a bug. &amp;nbsp;I am using WinXP Pro, SP3. &amp;nbsp;Here is an SSCCE: &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; makefile:
&lt;br&gt;&amp;gt; -------------------------
&lt;br&gt;&amp;gt; SHELL=cmd.exe
&lt;br&gt;&amp;gt; foobar:
&lt;br&gt;&amp;gt; 		@echo.&amp;gt;foo
&lt;br&gt;&amp;gt; ------------------------
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; gives me:
&lt;br&gt;&amp;gt; C:\tmp&amp;gt;make foobar
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; C:\tmp&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; However, this one:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; makefile:
&lt;br&gt;&amp;gt; -------------------------
&lt;br&gt;&amp;gt; SHELL=cmd.exe
&lt;br&gt;&amp;gt; foobar:
&lt;br&gt;&amp;gt; 		@echo.
&lt;br&gt;&amp;gt; ------------------------
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; gives:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; C:\tmp&amp;gt;make foobar
&lt;br&gt;&amp;gt; process_begin: CreateProcess(NULL, echo., ...) failed.
&lt;br&gt;&amp;gt; make (e=2): The system cannot find the file specified.
&lt;br&gt;&amp;gt; make: *** [foobar] Error 2
&lt;/div&gt;&lt;br&gt;Thanks, I just fixed this in CVS. &amp;nbsp;Patch below.
&lt;br&gt;&lt;br&gt;2009-12-11 &amp;nbsp;Eli Zaretskii &amp;nbsp;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26746826&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eliz@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; * job.c (construct_command_argv_internal) &amp;lt;sh_cmds_dos&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [WINDOWS32]: Add &amp;quot;echo.&amp;quot; and a few more commands that are built
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; into cmd.exe. &amp;nbsp;Fixes Savannah bug #28126.
&lt;br&gt;&lt;br&gt;--- job.c~	2008-09-30 13:15:03.465375000 +0200
&lt;br&gt;+++ job.c	2009-12-11 17:22:22.698250000 +0200
&lt;br&gt;@@ -2287,12 +2287,15 @@
&lt;br&gt;&amp;nbsp;			 &amp;nbsp; &amp;nbsp; 0 };
&lt;br&gt;&amp;nbsp;#elif defined (WINDOWS32)
&lt;br&gt;&amp;nbsp; &amp;nbsp;static char sh_chars_dos[] = &amp;quot;\&amp;quot;|&amp;&amp;lt;&amp;gt;&amp;quot;;
&lt;br&gt;- &amp;nbsp;static char *sh_cmds_dos[] = { &amp;quot;break&amp;quot;, &amp;quot;call&amp;quot;, &amp;quot;cd&amp;quot;, &amp;quot;chcp&amp;quot;, &amp;quot;chdir&amp;quot;, &amp;quot;cls&amp;quot;,
&lt;br&gt;-			 &amp;nbsp; &amp;nbsp; &amp;quot;copy&amp;quot;, &amp;quot;ctty&amp;quot;, &amp;quot;date&amp;quot;, &amp;quot;del&amp;quot;, &amp;quot;dir&amp;quot;, &amp;quot;echo&amp;quot;,
&lt;br&gt;-			 &amp;nbsp; &amp;nbsp; &amp;quot;erase&amp;quot;, &amp;quot;exit&amp;quot;, &amp;quot;for&amp;quot;, &amp;quot;goto&amp;quot;, &amp;quot;if&amp;quot;, &amp;quot;if&amp;quot;, &amp;quot;md&amp;quot;,
&lt;br&gt;-			 &amp;nbsp; &amp;nbsp; &amp;quot;mkdir&amp;quot;, &amp;quot;path&amp;quot;, &amp;quot;pause&amp;quot;, &amp;quot;prompt&amp;quot;, &amp;quot;rd&amp;quot;, &amp;quot;rem&amp;quot;,
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;ren&amp;quot;, &amp;quot;rename&amp;quot;, &amp;quot;rmdir&amp;quot;, &amp;quot;set&amp;quot;, &amp;quot;shift&amp;quot;, &amp;quot;time&amp;quot;,
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;type&amp;quot;, &amp;quot;ver&amp;quot;, &amp;quot;verify&amp;quot;, &amp;quot;vol&amp;quot;, &amp;quot;:&amp;quot;, 0 };
&lt;br&gt;+ &amp;nbsp;static char *sh_cmds_dos[] = { &amp;quot;assoc&amp;quot;, &amp;quot;break&amp;quot;, &amp;quot;call&amp;quot;, &amp;quot;cd&amp;quot;, &amp;quot;chcp&amp;quot;,
&lt;br&gt;+				 &amp;quot;chdir&amp;quot;, &amp;quot;cls&amp;quot;, &amp;quot;color&amp;quot;, &amp;quot;copy&amp;quot;, &amp;quot;ctty&amp;quot;,
&lt;br&gt;+				 &amp;quot;date&amp;quot;, &amp;quot;del&amp;quot;, &amp;quot;dir&amp;quot;, &amp;quot;echo&amp;quot;, &amp;quot;echo.&amp;quot;,
&lt;br&gt;+				 &amp;quot;endlocal&amp;quot;, &amp;quot;erase&amp;quot;, &amp;quot;exit&amp;quot;, &amp;quot;for&amp;quot;, &amp;quot;ftype&amp;quot;,
&lt;br&gt;+				 &amp;quot;goto&amp;quot;, &amp;quot;if&amp;quot;, &amp;quot;if&amp;quot;, &amp;quot;md&amp;quot;, &amp;quot;mkdir&amp;quot;, &amp;quot;path&amp;quot;,
&lt;br&gt;+				 &amp;quot;pause&amp;quot;, &amp;quot;prompt&amp;quot;, &amp;quot;rd&amp;quot;, &amp;quot;rem&amp;quot;, &amp;quot;ren&amp;quot;,
&lt;br&gt;+				 &amp;quot;rename&amp;quot;, &amp;quot;rmdir&amp;quot;, &amp;quot;set&amp;quot;, &amp;quot;setlocal&amp;quot;,
&lt;br&gt;+				 &amp;quot;shift&amp;quot;, &amp;quot;time&amp;quot;, &amp;quot;title&amp;quot;, &amp;quot;type&amp;quot;, &amp;quot;ver&amp;quot;,
&lt;br&gt;+				 &amp;quot;verify&amp;quot;, &amp;quot;vol&amp;quot;, &amp;quot;:&amp;quot;, 0 };
&lt;br&gt;&amp;nbsp; &amp;nbsp;static char sh_chars_sh[] = &amp;quot;#;\&amp;quot;*?[]&amp;|&amp;lt;&amp;gt;(){}$`^&amp;quot;;
&lt;br&gt;&amp;nbsp; &amp;nbsp;static char *sh_cmds_sh[] = { &amp;quot;cd&amp;quot;, &amp;quot;eval&amp;quot;, &amp;quot;exec&amp;quot;, &amp;quot;exit&amp;quot;, &amp;quot;login&amp;quot;,
&lt;br&gt;&amp;nbsp;			 &amp;nbsp; &amp;nbsp; &amp;quot;logout&amp;quot;, &amp;quot;set&amp;quot;, &amp;quot;umask&amp;quot;, &amp;quot;wait&amp;quot;, &amp;quot;while&amp;quot;, &amp;quot;for&amp;quot;,
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Bug-make mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26746826&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Bug-make@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/bug-make&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/bug-make&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Make---Bugs-f1738.html&quot; embed=&quot;fixTarget[1738]&quot; target=&quot;_top&quot; &gt;Gnu - Make - Bugs&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/bug-with-Windows-interface%3A--echo.-in-command-only-works-when-redirected-tp26569592p26746826.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26746972</id>
	<title>[bug #28126] bug with Windows interface: echo. in command only works when redirected</title>
	<published>2009-12-11T07:59:10Z</published>
	<updated>2009-12-11T07:59:10Z</updated>
	<author>
		<name>Eli Zaretskii-4</name>
	</author>
	<content type="html">&lt;br&gt;Update of bug #28126 (project make):
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Status: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;None =&amp;gt; Fixed &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Open/Closed: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Open =&amp;gt; Closed &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Fixed Release: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;None =&amp;gt; CVS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; _______________________________________________________
&lt;br&gt;&lt;br&gt;Follow-up Comment #1:
&lt;br&gt;&lt;br&gt;Fixed with the attached patch (which adds a couple more builtin commands).
&lt;br&gt;&lt;br&gt;&lt;br&gt;(file #19239)
&lt;br&gt;&amp;nbsp; &amp;nbsp; _______________________________________________________
&lt;br&gt;&lt;br&gt;Additional Item Attachment:
&lt;br&gt;&lt;br&gt;File name: w32builtins.dif &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Size:1 KB
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; _______________________________________________________
&lt;br&gt;&lt;br&gt;Reply to this item at:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;lt;&lt;a href=&quot;http://savannah.gnu.org/bugs/?28126&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://savannah.gnu.org/bugs/?28126&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&amp;nbsp; Message sent via/by Savannah
&lt;br&gt;&amp;nbsp; &lt;a href=&quot;http://savannah.gnu.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://savannah.gnu.org/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Bug-make mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26746972&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Bug-make@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/bug-make&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/bug-make&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Make---Bugs-f1738.html&quot; embed=&quot;fixTarget[1738]&quot; target=&quot;_top&quot; &gt;Gnu - Make - Bugs&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-bug--28126--bug-with-Windows-interface%3A-echo.-in-command-only-works-when-redirected-tp26569645p26746972.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26743025</id>
	<title>Re: behavior on Win depends on whether \ or / is used??</title>
	<published>2009-12-11T03:58:41Z</published>
	<updated>2009-12-11T03:58:41Z</updated>
	<author>
		<name>Eli Zaretskii</name>
	</author>
	<content type="html">&lt;div class='shrinkable-quote'&gt;&amp;gt; From: &amp;quot;Mark Galeck (CW)&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26743025&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mgaleck@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Date: Thu, 10 Dec 2009 13:06:14 -0800
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I have 2 subdirectories foobar0 and foobar1, and only in foobar1 there is a=
&lt;br&gt;&amp;gt; &amp;nbsp;file foobar.s &amp;nbsp;. There is no file foobar.o .
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The makefile is:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; SHELL=Dcmd.exe
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; vpath %.s .\foobar0 .\foobar1
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; %.o : %.s
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo $&amp;lt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; foobar0\foobar.s:;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; This behaves as expected:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; C:\tmp&amp;gt;make foobar.o
&lt;br&gt;&amp;gt; echo .\foobar1/foobar.s
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; However, if I change all the backslashes to forward-slashes, then I get:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; C:\tmp&amp;gt;make foobar.o
&lt;br&gt;&amp;gt; make: *** No rule to make target `foobar.s', needed by `foobar.o'. &amp;nbsp;Stop.
&lt;/div&gt;&lt;br&gt;The behavior with the forward slashes is the &amp;quot;correct&amp;quot; one (see below
&lt;br&gt;for the reasons I put ``correct'' in quotes). &amp;nbsp;Backslashes are not
&lt;br&gt;treated by Make on Windows in a 100% consistent manner, because in
&lt;br&gt;some cases they have special semantics.
&lt;br&gt;&lt;br&gt;One such special case is in file-name wildcards, where a backslash
&lt;br&gt;quotes special wildcard characters.
&lt;br&gt;&lt;br&gt;Another is in searching for files along vpath: Make looks up its
&lt;br&gt;database of known files by literally comparing hash values of the file
&lt;br&gt;names as strings, so foobar1/foobar.s and foobar1\foobar.s are not
&lt;br&gt;considered equal, and the search fails. &amp;nbsp;This is your case. &amp;nbsp;If you
&lt;br&gt;replace the backslash with forward slashes only in the last line of
&lt;br&gt;your Makefile, it will work (after applying the patch below). &amp;nbsp;That is
&lt;br&gt;because, when Make searches vpath, it looks for .\foobar0/foobar.s and
&lt;br&gt;.\foobar1/foobar.s, but your Makefile specifies foobar0\foobar.s, so
&lt;br&gt;Make thinks the file foobar0\foobar.s is not mentioned in the
&lt;br&gt;Makefile. &amp;nbsp;If you use forward slashes everywhere, then Make realizes
&lt;br&gt;that file foobar0/foobar.s _is_ mentioned in the Makefile.
&lt;br&gt;&lt;br&gt;I found and fixed a small bug in how the leading &amp;quot;.\&amp;quot; was treated on
&lt;br&gt;Windows: it should be treated the same as &amp;quot;./&amp;quot;, but it wasn't. &amp;nbsp;The
&lt;br&gt;patch below fixes that. &amp;nbsp;However, this does not (and cannot) make the
&lt;br&gt;backslash version of your Makefile behave 100% like the version with
&lt;br&gt;forward slashes, due to the fact that targets of the Makefile are
&lt;br&gt;looked up by comparing hash values of their strings, and the different
&lt;br&gt;flavor of slashes defeats the comparison.
&lt;br&gt;&lt;br&gt;Paul, do you see any potential problems in providing on Windows a
&lt;br&gt;special version of the hash macros that would treat forward and
&lt;br&gt;back-slashes the same?
&lt;br&gt;&lt;br&gt;The above explains why the behavior with backslashes was different.
&lt;br&gt;As to why the behavior with forward slashes is correct: this seems to
&lt;br&gt;be because you have the foobar0/foobar.s target in the Makefile, but
&lt;br&gt;not foobar1/foobar.s, while in reality the file that exists is
&lt;br&gt;foobar1/foobar.s. &amp;nbsp;This seems to dupe Make into thinking that it found
&lt;br&gt;the right prerequisite as foobar0/foobar.s, and it does not proceed
&lt;br&gt;looking for foobar1/foobar.s. &amp;nbsp;If you change the order of directories
&lt;br&gt;in the vpath line, the commands will work as you expect.
&lt;br&gt;&lt;br&gt;There is a long comment in the function vpath.c:selective_vpath_search
&lt;br&gt;which seems to describe why files mentioned as targets in the Makefile
&lt;br&gt;are treated specially, but I don't understand what it says. &amp;nbsp;Perhaps
&lt;br&gt;Paul or someone else could help in explaining the current behavior.
&lt;br&gt;&lt;br&gt;(I added help-make to the list of addressees, because this question
&lt;br&gt;was first asked there.)
&lt;br&gt;&lt;br&gt;Here's the patch mentioned above that I will install in the
&lt;br&gt;development sources:
&lt;br&gt;&lt;br&gt;2009-12-11 &amp;nbsp;Eli Zaretskii &amp;nbsp;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26743025&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eliz@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; * file.c (lookup_file) [HAVE_DOS_PATHS]: Treat '\\' like we do
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; with '/'.
&lt;br&gt;&lt;br&gt;--- file.c~	2006-03-17 18:24:20.000000000 +0200
&lt;br&gt;+++ file.c	2009-12-11 13:12:13.760750000 +0200
&lt;br&gt;@@ -102,10 +102,20 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp;while (name[0] == '[' &amp;&amp; name[1] == ']' &amp;&amp; name[2] != '\0')
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;name += 2;
&lt;br&gt;&amp;nbsp;#endif
&lt;br&gt;- &amp;nbsp;while (name[0] == '.' &amp;&amp; name[1] == '/' &amp;&amp; name[2] != '\0')
&lt;br&gt;+ &amp;nbsp;while (name[0] == '.'
&lt;br&gt;+#ifdef HAVE_DOS_PATHS
&lt;br&gt;+	 &amp;&amp; (name[1] == '/' || name[1] == '\\')
&lt;br&gt;+#else
&lt;br&gt;+	 &amp;&amp; name[1] == '/'
&lt;br&gt;+#endif
&lt;br&gt;+	 &amp;&amp; name[2] != '\0')
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;name += 2;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp;while (*name == '/')
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;while (*name == '/'
&lt;br&gt;+#ifdef HAVE_DOS_PATHS
&lt;br&gt;+	 &amp;nbsp; &amp;nbsp; || *name == '\\'
&lt;br&gt;+#endif
&lt;br&gt;+	 &amp;nbsp; &amp;nbsp; )
&lt;br&gt;&amp;nbsp;	/* Skip following slashes: &amp;quot;.//foo&amp;quot; is &amp;quot;foo&amp;quot;, not &amp;quot;/foo&amp;quot;. &amp;nbsp;*/
&lt;br&gt;&amp;nbsp;	++name;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-make mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26743025&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-make@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/help-make&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/help-make&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Make---Help-f1739.html&quot; embed=&quot;fixTarget[1739]&quot; target=&quot;_top&quot; &gt;Gnu - Make - Help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/behavior-on-Win-depends-on-whether-%5C-or---is-used---tp26720921p26743025.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26743035</id>
	<title>Re: behavior on Win depends on whether \ or / is used??</title>
	<published>2009-12-11T03:58:41Z</published>
	<updated>2009-12-11T03:58:41Z</updated>
	<author>
		<name>Eli Zaretskii</name>
	</author>
	<content type="html">&lt;div class='shrinkable-quote'&gt;&amp;gt; From: &amp;quot;Mark Galeck (CW)&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26743035&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mgaleck@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Date: Thu, 10 Dec 2009 13:06:14 -0800
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I have 2 subdirectories foobar0 and foobar1, and only in foobar1 there is a=
&lt;br&gt;&amp;gt; &amp;nbsp;file foobar.s &amp;nbsp;. There is no file foobar.o .
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The makefile is:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; SHELL=Dcmd.exe
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; vpath %.s .\foobar0 .\foobar1
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; %.o : %.s
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo $&amp;lt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; foobar0\foobar.s:;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; This behaves as expected:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; C:\tmp&amp;gt;make foobar.o
&lt;br&gt;&amp;gt; echo .\foobar1/foobar.s
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; However, if I change all the backslashes to forward-slashes, then I get:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; C:\tmp&amp;gt;make foobar.o
&lt;br&gt;&amp;gt; make: *** No rule to make target `foobar.s', needed by `foobar.o'. &amp;nbsp;Stop.
&lt;/div&gt;&lt;br&gt;The behavior with the forward slashes is the &amp;quot;correct&amp;quot; one (see below
&lt;br&gt;for the reasons I put ``correct'' in quotes). &amp;nbsp;Backslashes are not
&lt;br&gt;treated by Make on Windows in a 100% consistent manner, because in
&lt;br&gt;some cases they have special semantics.
&lt;br&gt;&lt;br&gt;One such special case is in file-name wildcards, where a backslash
&lt;br&gt;quotes special wildcard characters.
&lt;br&gt;&lt;br&gt;Another is in searching for files along vpath: Make looks up its
&lt;br&gt;database of known files by literally comparing hash values of the file
&lt;br&gt;names as strings, so foobar1/foobar.s and foobar1\foobar.s are not
&lt;br&gt;considered equal, and the search fails. &amp;nbsp;This is your case. &amp;nbsp;If you
&lt;br&gt;replace the backslash with forward slashes only in the last line of
&lt;br&gt;your Makefile, it will work (after applying the patch below). &amp;nbsp;That is
&lt;br&gt;because, when Make searches vpath, it looks for .\foobar0/foobar.s and
&lt;br&gt;.\foobar1/foobar.s, but your Makefile specifies foobar0\foobar.s, so
&lt;br&gt;Make thinks the file foobar0\foobar.s is not mentioned in the
&lt;br&gt;Makefile. &amp;nbsp;If you use forward slashes everywhere, then Make realizes
&lt;br&gt;that file foobar0/foobar.s _is_ mentioned in the Makefile.
&lt;br&gt;&lt;br&gt;I found and fixed a small bug in how the leading &amp;quot;.\&amp;quot; was treated on
&lt;br&gt;Windows: it should be treated the same as &amp;quot;./&amp;quot;, but it wasn't. &amp;nbsp;The
&lt;br&gt;patch below fixes that. &amp;nbsp;However, this does not (and cannot) make the
&lt;br&gt;backslash version of your Makefile behave 100% like the version with
&lt;br&gt;forward slashes, due to the fact that targets of the Makefile are
&lt;br&gt;looked up by comparing hash values of their strings, and the different
&lt;br&gt;flavor of slashes defeats the comparison.
&lt;br&gt;&lt;br&gt;Paul, do you see any potential problems in providing on Windows a
&lt;br&gt;special version of the hash macros that would treat forward and
&lt;br&gt;back-slashes the same?
&lt;br&gt;&lt;br&gt;The above explains why the behavior with backslashes was different.
&lt;br&gt;As to why the behavior with forward slashes is correct: this seems to
&lt;br&gt;be because you have the foobar0/foobar.s target in the Makefile, but
&lt;br&gt;not foobar1/foobar.s, while in reality the file that exists is
&lt;br&gt;foobar1/foobar.s. &amp;nbsp;This seems to dupe Make into thinking that it found
&lt;br&gt;the right prerequisite as foobar0/foobar.s, and it does not proceed
&lt;br&gt;looking for foobar1/foobar.s. &amp;nbsp;If you change the order of directories
&lt;br&gt;in the vpath line, the commands will work as you expect.
&lt;br&gt;&lt;br&gt;There is a long comment in the function vpath.c:selective_vpath_search
&lt;br&gt;which seems to describe why files mentioned as targets in the Makefile
&lt;br&gt;are treated specially, but I don't understand what it says. &amp;nbsp;Perhaps
&lt;br&gt;Paul or someone else could help in explaining the current behavior.
&lt;br&gt;&lt;br&gt;(I added help-make to the list of addressees, because this question
&lt;br&gt;was first asked there.)
&lt;br&gt;&lt;br&gt;Here's the patch mentioned above that I will install in the
&lt;br&gt;development sources:
&lt;br&gt;&lt;br&gt;2009-12-11 &amp;nbsp;Eli Zaretskii &amp;nbsp;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26743035&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eliz@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; * file.c (lookup_file) [HAVE_DOS_PATHS]: Treat '\\' like we do
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; with '/'.
&lt;br&gt;&lt;br&gt;--- file.c~	2006-03-17 18:24:20.000000000 +0200
&lt;br&gt;+++ file.c	2009-12-11 13:12:13.760750000 +0200
&lt;br&gt;@@ -102,10 +102,20 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp;while (name[0] == '[' &amp;&amp; name[1] == ']' &amp;&amp; name[2] != '\0')
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;name += 2;
&lt;br&gt;&amp;nbsp;#endif
&lt;br&gt;- &amp;nbsp;while (name[0] == '.' &amp;&amp; name[1] == '/' &amp;&amp; name[2] != '\0')
&lt;br&gt;+ &amp;nbsp;while (name[0] == '.'
&lt;br&gt;+#ifdef HAVE_DOS_PATHS
&lt;br&gt;+	 &amp;&amp; (name[1] == '/' || name[1] == '\\')
&lt;br&gt;+#else
&lt;br&gt;+	 &amp;&amp; name[1] == '/'
&lt;br&gt;+#endif
&lt;br&gt;+	 &amp;&amp; name[2] != '\0')
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;name += 2;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp;while (*name == '/')
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;while (*name == '/'
&lt;br&gt;+#ifdef HAVE_DOS_PATHS
&lt;br&gt;+	 &amp;nbsp; &amp;nbsp; || *name == '\\'
&lt;br&gt;+#endif
&lt;br&gt;+	 &amp;nbsp; &amp;nbsp; )
&lt;br&gt;&amp;nbsp;	/* Skip following slashes: &amp;quot;.//foo&amp;quot; is &amp;quot;foo&amp;quot;, not &amp;quot;/foo&amp;quot;. &amp;nbsp;*/
&lt;br&gt;&amp;nbsp;	++name;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Make-w32 mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26743035&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Make-w32@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/make-w32&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/make-w32&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Make---W32-f1740.html&quot; embed=&quot;fixTarget[1740]&quot; target=&quot;_top&quot; &gt;Gnu - Make - W32&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/behavior-on-Win-depends-on-whether-%5C-or---is-used---tp26740319p26743035.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26740319</id>
	<title>behavior on Win depends on whether \ or / is used??</title>
	<published>2009-12-10T13:06:14Z</published>
	<updated>2009-12-10T13:06:14Z</updated>
	<author>
		<name>Mark Galeck (CW)</name>
	</author>
	<content type="html">&lt;html xmlns:v=&quot;urn:schemas-microsoft-com:vml&quot; xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot; xmlns:w=&quot;urn:schemas-microsoft-com:office:word&quot; xmlns:m=&quot;http://schemas.microsoft.com/office/2004/12/omml&quot; xmlns=&quot;http://www.w3.org/TR/REC-html40&quot;&gt;

&lt;head&gt;
&lt;META HTTP-EQUIV=&quot;Content-Type&quot; CONTENT=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;meta name=Generator content=&quot;Microsoft Word 12 (filtered medium)&quot;&gt;

&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapedefaults v:ext=&quot;edit&quot; spidmax=&quot;1026&quot; /&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapelayout v:ext=&quot;edit&quot;&gt;
  &lt;o:idmap v:ext=&quot;edit&quot; data=&quot;1&quot; /&gt;
 &lt;/o:shapelayout&gt;&lt;/xml&gt;&lt;![endif]--&gt;
&lt;/head&gt;

&lt;body lang=EN-US link=blue vlink=purple&gt;

&lt;div class=Section1&gt;

&lt;p class=MsoPlainText&gt;Hello,&amp;nbsp; this is a Windows question, &lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;I have 2 subdirectories foobar0 and foobar1, and only in
foobar1 there is a file foobar.s&amp;nbsp; . There is no file foobar.o .&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;The makefile is:&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;SHELL=cmd.exe&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;vpath %.s .\foobar0 .\foobar1 &lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;%.o : %.s &lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo $&amp;lt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;foobar0\foobar.s:;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;This behaves as expected:&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;C:\tmp&amp;gt;make foobar.o&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;echo .\foobar1/foobar.s&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;However, if I change all the backslashes to
forward-slashes, then I get:&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;C:\tmp&amp;gt;make foobar.o&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;make: *** No rule to make target `foobar.s', needed by
`foobar.o'.&amp;nbsp; Stop.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;(this is just a small example, what I observe is that
forward slash in directories, misbehaves with vpath on Windows)&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;Is this a bug in Windows make, or in my head?&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;Mark&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/body&gt;

&lt;/html&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Make-w32 mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26740319&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Make-w32@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/make-w32&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/make-w32&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Make---W32-f1740.html&quot; embed=&quot;fixTarget[1740]&quot; target=&quot;_top&quot; &gt;Gnu - Make - W32&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/behavior-on-Win-depends-on-whether-%5C-or---is-used---tp26740319p26740319.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26731506</id>
	<title>Re: Dependency graphs for a Makefile</title>
	<published>2009-12-10T09:37:09Z</published>
	<updated>2009-12-10T09:37:09Z</updated>
	<author>
		<name>Paul Smith-20</name>
	</author>
	<content type="html">On Fri, 2009-12-11 at 11:18 +1800, Peng Yu wrote:
&lt;br&gt;&amp;gt; GraphViz can be used to plot a graph. I'm wondering if there is a easy
&lt;br&gt;&amp;gt; way to generate dependency graph (exported to a figure that can be
&lt;br&gt;&amp;gt; visualized) for a Makefile.
&lt;br&gt;&lt;br&gt;There is nothing built into make. &amp;nbsp;You can use &amp;quot;make -p&amp;quot; to see a copy
&lt;br&gt;of the database which will give you any explicit dependencies and could
&lt;br&gt;be postprocessed with perl/awk/etc.
&lt;br&gt;&lt;br&gt;However, there is no way to know what the implicit dependencies are
&lt;br&gt;since make doesn't compute them ever unless it actually wants to build
&lt;br&gt;the target.
&lt;br&gt;&lt;br&gt;It *might* be possible to do this after a complete build if you give the
&lt;br&gt;-B option, as well as -d, but the parsing will be a lot more complicated
&lt;br&gt;since you'll have to watch the debug output to see all the prerequisites
&lt;br&gt;that make considers when building a target.
&lt;br&gt;&lt;br&gt;&lt;br&gt;There is also the remake project which you can find on sourceforge,
&lt;br&gt;which might have some help for you on this:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://bashdb.sourceforge.net/remake/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://bashdb.sourceforge.net/remake/&lt;/a&gt;&lt;br&gt;&lt;br&gt;The &amp;quot;download&amp;quot; link here seems to lead me off into the weeds, but if you
&lt;br&gt;go to the sourceforge.net project page link and use the &amp;quot;View all files&amp;quot;
&lt;br&gt;button you can find it.
&lt;br&gt;&lt;br&gt;I can't say for sure but I think the debugging output of remake is more
&lt;br&gt;conducive to parsing, at any rate.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-make mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26731506&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-make@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/help-make&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/help-make&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Make---Help-f1739.html&quot; embed=&quot;fixTarget[1739]&quot; target=&quot;_top&quot; &gt;Gnu - Make - Help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Dependency-graphs-for-a-Makefile-tp26731292p26731506.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26731292</id>
	<title>Dependency graphs for a Makefile</title>
	<published>2009-12-10T09:18:59Z</published>
	<updated>2009-12-10T09:18:59Z</updated>
	<author>
		<name>Peng Yu</name>
	</author>
	<content type="html">GraphViz can be used to plot a graph. I'm wondering if there is a easy
&lt;br&gt;way to generate dependency graph (exported to a figure that can be
&lt;br&gt;visualized) for a Makefile.
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-make mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26731292&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-make@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/help-make&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/help-make&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Make---Help-f1739.html&quot; embed=&quot;fixTarget[1739]&quot; target=&quot;_top&quot; &gt;Gnu - Make - Help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Dependency-graphs-for-a-Makefile-tp26731292p26731292.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26721316</id>
	<title>RE: behavior on Win depends on whether \ or / is used??</title>
	<published>2009-12-09T18:42:04Z</published>
	<updated>2009-12-09T18:42:04Z</updated>
	<author>
		<name>Mark Galeck (CW)</name>
	</author>
	<content type="html">Here's another example, now this one is just terrible, I spent several hours tracking down this problem: &amp;nbsp;
&lt;br&gt;&lt;br&gt;&lt;br&gt;Again, 2 subdirectories foobar0 and foobar1, and only in foobar1 there is a file foobar.s &amp;nbsp;. There is no file foobar.o . &amp;nbsp;
&lt;br&gt;&lt;br&gt;The makefile is:
&lt;br&gt;&lt;br&gt;SHELL=cmd.exe
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;vpath %.s .\foobar0 .\foobar1	
&lt;br&gt;&lt;br&gt;%.o : %.s 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo $&amp;lt;
&lt;br&gt;&lt;br&gt;.\foobar0\foobar.s:;
&lt;br&gt;&lt;br&gt;&lt;br&gt;This behaves as expected:
&lt;br&gt;&lt;br&gt;C:\tmp&amp;gt;make foobar.o
&lt;br&gt;echo .\foobar1/foobar.s
&lt;br&gt;&lt;br&gt;&lt;br&gt;But, that is after my change! &amp;nbsp;The last line in the makefile is generated automatically - it comes out of what make outputs as $&amp;lt; to some rule, and make, outputs forward slashes! &amp;nbsp;If I keep it the way make wants it 
&lt;br&gt;&lt;br&gt;.\foobar/foobar.s:;
&lt;br&gt;&lt;br&gt;&lt;br&gt;Now this bombs! &amp;nbsp;Because it says
&lt;br&gt;&lt;br&gt;C:\tmp&amp;gt;make foobar.o
&lt;br&gt;echo .\foobar0/foobar.s
&lt;br&gt;&lt;br&gt;and of course, the file foobar0/foobar.s does not exist - and then later make dutifully exclaims &amp;quot;cannot open file foobar0/foobar.s for reading&amp;quot; - well yes you can't, why did you think you found it???
&lt;br&gt;&lt;br&gt;What is going on here, can someone enlighten me?
&lt;br&gt;&lt;br&gt;How do I get vpaths and forward slashes, output by make itself, to behave on Windows? It seems to me that the only solution, in those more complex cases like above, is every time make &amp;nbsp;outputs a forward slash, to edit it myself to backslash, before I give it back to make!!
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-make mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26721316&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-make@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/help-make&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/help-make&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Make---Help-f1739.html&quot; embed=&quot;fixTarget[1739]&quot; target=&quot;_top&quot; &gt;Gnu - Make - Help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/behavior-on-Win-depends-on-whether-%5C-or---is-used---tp26720921p26721316.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26720921</id>
	<title>behavior on Win depends on whether \ or / is used??</title>
	<published>2009-12-09T17:45:46Z</published>
	<updated>2009-12-09T17:45:46Z</updated>
	<author>
		<name>Mark Galeck (CW)</name>
	</author>
	<content type="html">Hello, &amp;nbsp;this is a Windows question, 
&lt;br&gt;&lt;br&gt;I have 2 subdirectories foobar0 and foobar1, and only in foobar1 there is a file foobar.s &amp;nbsp;. There is no file foobar.o . &amp;nbsp;
&lt;br&gt;&lt;br&gt;The makefile is:
&lt;br&gt;&lt;br&gt;&lt;br&gt;SHELL=cmd.exe
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;vpath %.s .\foobar0 .\foobar1	
&lt;br&gt;&lt;br&gt;%.o : %.s 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo $&amp;lt;
&lt;br&gt;&lt;br&gt;foobar0\foobar.s:;
&lt;br&gt;&lt;br&gt;&lt;br&gt;This behaves as expected:
&lt;br&gt;&lt;br&gt;C:\tmp&amp;gt;make foobar.o
&lt;br&gt;echo .\foobar1/foobar.s
&lt;br&gt;&lt;br&gt;&lt;br&gt;However, if I change all the backslashes to forward-slashes, then I get:
&lt;br&gt;&lt;br&gt;&lt;br&gt;C:\tmp&amp;gt;make foobar.o
&lt;br&gt;make: *** No rule to make target `foobar.s', needed by `foobar.o'. &amp;nbsp;Stop.
&lt;br&gt;&lt;br&gt;(this is just a small example, what I observe is that forward slash in directories, misbehaves with vpath on Windows)
&lt;br&gt;&lt;br&gt;Is this a bug in Windows make, or in my head? &amp;nbsp;
&lt;br&gt;&lt;br&gt;Mark
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-make mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26720921&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-make@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/help-make&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/help-make&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Make---Help-f1739.html&quot; embed=&quot;fixTarget[1739]&quot; target=&quot;_top&quot; &gt;Gnu - Make - Help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/behavior-on-Win-depends-on-whether-%5C-or---is-used---tp26720921p26720921.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26710498</id>
	<title>Target with fake dependencies</title>
	<published>2009-12-09T05:43:40Z</published>
	<updated>2009-12-09T05:43:40Z</updated>
	<author>
		<name>Beber-2</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I'm trying to wrote a generic Makefile that will have to do what I ask
&lt;br&gt;in all SUBDIRS (declared inside Makefile). For exemple :
&lt;br&gt;&lt;br&gt;$ make pdf odt
&lt;br&gt;make -C ni_a_gomz_brezhoneg pdf odt
&lt;br&gt;...
&lt;br&gt;make -C troit_e_brezhoneg pdf odt
&lt;br&gt;&lt;br&gt;$ make pdf dummy-target
&lt;br&gt;make -C ni_a_gomz_brezhoneg pdf dummy-target
&lt;br&gt;make[1]: Entering directory `/home/beber/bzh/skol_ober/ni_a_gomz_brezhoneg'
&lt;br&gt;make: *** No rule to make target `dummy-target'. &amp;nbsp;Stop.
&lt;br&gt;&lt;br&gt;I actually did this like that :
&lt;br&gt;&lt;br&gt;---
&lt;br&gt;SUBDIRS = \
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ni_a_gomz_brezhoneg \
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; troit_e_brezhoneg
&lt;br&gt;&lt;br&gt;all: &amp;nbsp; &amp;nbsp;$(SUBDIRS)
&lt;br&gt;&lt;br&gt;%:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; @for DIR in $(SUBDIRS) ; do \
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo $(MAKE) -C $$DIR $@ ; \
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $(MAKE) -C $$DIR $@ ; \
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; done
&lt;br&gt;&lt;br&gt;.PHONY: $(SUBDIRS)
&lt;br&gt;---
&lt;br&gt;&lt;br&gt;This is ok when I use :
&lt;br&gt;&amp;nbsp; - make all
&lt;br&gt;&amp;nbsp; - make clean
&lt;br&gt;&amp;nbsp; - make dummy-target
&lt;br&gt;&lt;br&gt;Not important : I can't get it make go in the subdir with all previous target as
&lt;br&gt;argument. I get the following scheme :
&lt;br&gt;&lt;br&gt;$ make pdf odt
&lt;br&gt;make -C ni_a_gomz_brezhoneg pdf
&lt;br&gt;..
&lt;br&gt;make -C troit_e_brezhoneg pdf
&lt;br&gt;..
&lt;br&gt;make -C ni_a_gomz_brezhoneg odt
&lt;br&gt;..
&lt;br&gt;make -C troit_e_brezhoneg odt
&lt;br&gt;..
&lt;br&gt;&lt;br&gt;This is also fine.
&lt;br&gt;&lt;br&gt;But, I can't just build one of the subdir, if I ask just
&lt;br&gt;ni_a_gomz_brezhoneg target for exemple :
&lt;br&gt;&lt;br&gt;$ make ni_a_gomz_brezhoneg
&lt;br&gt;make: Nothing to be done for `ni_a_gomz_brezhoneg'.
&lt;br&gt;&lt;br&gt;Also I can override this :
&lt;br&gt;$ make -C ni_a_gomz_brezhoneg
&lt;br&gt;make: Entering directory `/home/beber/bzh/skol_ober/ni_a_gomz_brezhoneg'
&lt;br&gt;&lt;br&gt;This is not a worry, but i'd like to understand why there is nothing to
&lt;br&gt;do as it's .PHONY.
&lt;br&gt;&lt;br&gt;Another thing is that I'd like to avoid the &amp;quot;shell for loop&amp;quot;. foreach is
&lt;br&gt;not really appropriate as it make things less visibles by executing at
&lt;br&gt;once.
&lt;br&gt;&lt;br&gt;I did this like that in past for file like :
&lt;br&gt;&lt;br&gt;---
&lt;br&gt;SRC &amp;nbsp; &amp;nbsp; = \
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; br.po
&lt;br&gt;&lt;br&gt;OBJMO &amp;nbsp; = $(SRC:po=mo)
&lt;br&gt;&lt;br&gt;# Build
&lt;br&gt;%.mo %.gmo: &amp;nbsp; &amp;nbsp; %.po
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $(MSGFMTPRG) $(MSGFMTOPT) -o $@ $&amp;lt;
&lt;br&gt;&lt;br&gt;# Install
&lt;br&gt;install: $(OBJMO)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $(MAKE) $(addprefix install-, $^)
&lt;br&gt;&lt;br&gt;install-%.mo: &amp;nbsp; $(OBJMO)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $(INSTALLPRG) $(INSTALLOPT) $&amp;lt; $(localedir)/$*/LC_MESSAGES/$(NAME).mo
&lt;br&gt;---
&lt;br&gt;&lt;br&gt;I don't known if it's a good practice, but it permit me to avoid &amp;quot;shell loop&amp;quot;
&lt;br&gt;by re-executing make and redefined target on the fly :
&lt;br&gt;&lt;br&gt;$ make install prefix=/tmp
&lt;br&gt;make install-br.mo install-fr.mo
&lt;br&gt;&lt;br&gt;I'm trying to achieve the same thing when I have to use $(MAKE) -C to
&lt;br&gt;go inside subdir as demonstrated previously.
&lt;br&gt;&lt;br&gt;Thanks for your advice
&lt;br&gt;Beber
&lt;br&gt;&lt;br&gt;And sorry for the bad english.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Beber
&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;Help-make mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26710498&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-make@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/help-make&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/help-make&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (204 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26710498/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Make---Help-f1739.html&quot; embed=&quot;fixTarget[1739]&quot; target=&quot;_top&quot; &gt;Gnu - Make - Help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Target-with-fake-dependencies-tp26710498p26710498.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26703765</id>
	<title>Re: Cancelling a Implicit Rule ?</title>
	<published>2009-12-08T17:28:02Z</published>
	<updated>2009-12-08T17:28:02Z</updated>
	<author>
		<name>Philip Guenther-2</name>
	</author>
	<content type="html">2009/12/8 L.Guo &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26703765&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;leaveye.guo@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;...
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I have a main makefile 'Makefile' and two sub (common) makefile 'default.mk' and 'rules.mk'.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The source files all in 'src' dir, the output in 'out'. As these:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;        SRCS = src/a.c src/main.c src/version.h
&lt;br&gt;&amp;gt;        DEPS = out/a.d out/main.d
&lt;br&gt;&amp;gt;        OBJS = out/a.o out/main.o
&lt;br&gt;&amp;gt;        TGTS = out/programme
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I want to use pattern rules in 'rules.mk' to handle the dependencies generating.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; $(OUTDIR)/%.d: $(SRCDIR)/%.c $(OUTDIR)
&lt;br&gt;&amp;gt;        @{ set -e; $(RM) $@;\
&lt;br&gt;&amp;gt;           echo 'Generate $@ from $&amp;lt;'\
&lt;br&gt;&amp;gt;           $(CC) -M $(CFLAGS) $&amp;lt; &amp;gt; $@.$$$$;\
&lt;br&gt;&amp;gt;           sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' &amp;lt; $@.$$$$ &amp;gt; $@;\
&lt;br&gt;&amp;gt;           $(RM) $@.$$$$;\
&lt;br&gt;&amp;gt;         }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; $(OBJS): $(OUTDIR)/%.o: $(SRCDIR)/%.c $(OUTDIR)/%.d
&lt;br&gt;&amp;gt;        $(CC) -c $(CFLAGS) -o $@ $&amp;lt;
&lt;/div&gt;&lt;br&gt;I suggest you read
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://make.paulandlesley.org/autodep.html#advanced&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://make.paulandlesley.org/autodep.html#advanced&lt;/a&gt;&lt;br&gt;&lt;br&gt;to see how having actual targets for the files included by make is
&lt;br&gt;unnecessary and wasteful. &amp;nbsp;It's sufficient (and more efficient) to
&lt;br&gt;just have them created as a side-effect of the rule that generates the
&lt;br&gt;.o files.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; When using the whole thing to build my project, 'make' gives me an error report:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;        make: *** No rule to make target `main.c', needed by `out/main.d'.  Stop.
&lt;br&gt;&lt;br&gt;I don't think this can be determined from what you've provided. &amp;nbsp;I
&lt;br&gt;suggest you check the output of
&lt;br&gt;&amp;nbsp; &amp;nbsp; make -Rpq
&lt;br&gt;&lt;br&gt;and examine all the lines that include &amp;quot;.d&amp;quot; to see whether anything
&lt;br&gt;stands out as &amp;quot;Not What I Meant&amp;quot;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Philip Guenther
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-make mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26703765&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-make@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/help-make&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/help-make&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Make---Help-f1739.html&quot; embed=&quot;fixTarget[1739]&quot; target=&quot;_top&quot; &gt;Gnu - Make - Help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Cancelling-a-Implicit-Rule---tp26691521p26703765.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26701615</id>
	<title>[bug #28230] $(eval) does not understand multiline</title>
	<published>2009-12-08T14:02:01Z</published>
	<updated>2009-12-08T14:02:01Z</updated>
	<author>
		<name>Eli Zaretskii-4</name>
	</author>
	<content type="html">&lt;br&gt;Follow-up Comment #1, bug #28230 (project make):
&lt;br&gt;&lt;br&gt;To quote the info pages:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;The `shell' function performs the same function that backquotes
&lt;br&gt;(``') perform in most shells: it does &amp;quot;command expansion&amp;quot;. &amp;nbsp;This means that
&lt;br&gt;it takes as an argument a shell command and evaluates to the output of the
&lt;br&gt;command. &amp;nbsp;The only processing `make' does on the result is to convert each
&lt;br&gt;newline (or carriage-return / newline pair) to a single space. &amp;nbsp;If there is a
&lt;br&gt;trailing (carriage-return and) newline it will simply be removed.
&lt;br&gt;&lt;br&gt;So, $(eval) isn't actually seeing two lines in this case, but just a single
&lt;br&gt;one. &amp;nbsp;The described behavior is as specified by the documentation, so it seems
&lt;br&gt;like &amp;quot;not a bug&amp;quot;, though maybe a feature request for a version of $(shell)
&lt;br&gt;that gives a multiline result is called for.
&lt;br&gt;&lt;br&gt;Philip Guenther
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; _______________________________________________________
&lt;br&gt;&lt;br&gt;Reply to this item at:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;lt;&lt;a href=&quot;http://savannah.gnu.org/bugs/?28230&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://savannah.gnu.org/bugs/?28230&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&amp;nbsp; Message sent via/by Savannah
&lt;br&gt;&amp;nbsp; &lt;a href=&quot;http://savannah.gnu.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://savannah.gnu.org/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Bug-make mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26701615&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Bug-make@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/bug-make&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/bug-make&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Make---Bugs-f1738.html&quot; embed=&quot;fixTarget[1738]&quot; target=&quot;_top&quot; &gt;Gnu - Make - Bugs&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-bug--28230--%24%28eval%29-does-not-understand-multiline-tp26699137p26701615.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26699137</id>
	<title>[bug #28230] $(eval) does not understand multiline</title>
	<published>2009-12-08T10:53:48Z</published>
	<updated>2009-12-08T10:53:48Z</updated>
	<author>
		<name>Eli Zaretskii-4</name>
	</author>
	<content type="html">&lt;br&gt;URL:
&lt;br&gt;&amp;nbsp; &amp;lt;&lt;a href=&quot;http://savannah.gnu.org/bugs/?28230&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://savannah.gnu.org/bugs/?28230&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Summary: $(eval) does not understand multiline
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Project: make
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Submitted by: yozh
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Submitted on: Tue 08 Dec 2009 06:53:47 PM GMT
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Severity: 3 - Normal
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Item Group: None
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Status: None
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Privacy: Public
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assigned to: None
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Open/Closed: Open
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Discussion Lock: Any
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Component Version: None
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Operating System: None
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Fixed Release: None
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Triage Status: None
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; _______________________________________________________
&lt;br&gt;&lt;br&gt;Details:
&lt;br&gt;&lt;br&gt;====
&lt;br&gt;# cat script.sh
&lt;br&gt;#!/bin/sh -e
&lt;br&gt;&lt;br&gt;echo &amp;quot;a = 1&amp;quot;
&lt;br&gt;echo &amp;quot;b = 2&amp;quot;
&lt;br&gt;&lt;br&gt;# cat Makefile
&lt;br&gt;$(eval $(shell ./script.sh))
&lt;br&gt;$(info $(a))
&lt;br&gt;$(info $(b))
&lt;br&gt;&lt;br&gt;xx:
&lt;br&gt;# gmake
&lt;br&gt;1 b = 2
&lt;br&gt;&lt;br&gt;gmake: Nothing to be done for `xx'.
&lt;br&gt;====
&lt;br&gt;&lt;br&gt;&amp;quot;1 b = 2\n\n&amp;quot; is printed. &amp;quot;1\n2\b&amp;quot; expected.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; _______________________________________________________
&lt;br&gt;&lt;br&gt;Reply to this item at:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;lt;&lt;a href=&quot;http://savannah.gnu.org/bugs/?28230&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://savannah.gnu.org/bugs/?28230&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&amp;nbsp; Message sent via/by Savannah
&lt;br&gt;&amp;nbsp; &lt;a href=&quot;http://savannah.gnu.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://savannah.gnu.org/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Bug-make mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26699137&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Bug-make@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/bug-make&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/bug-make&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Make---Bugs-f1738.html&quot; embed=&quot;fixTarget[1738]&quot; target=&quot;_top&quot; &gt;Gnu - Make - Bugs&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-bug--28230--%24%28eval%29-does-not-understand-multiline-tp26699137p26699137.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26698795</id>
	<title>Bug in Makefile document</title>
	<published>2009-12-08T07:21:02Z</published>
	<updated>2009-12-08T07:21:02Z</updated>
	<author>
		<name>Sanjiv K. Bhatia-2</name>
	</author>
	<content type="html">I just saw something in the Makefile document and thought you should know.
&lt;br&gt;&lt;br&gt;On Page 14 of the manual (PDF version), in Section 3.5, the last
&lt;br&gt;paragraph of the section says:
&lt;br&gt;&lt;br&gt;&amp;quot;See Section 8.2 [Text Functions], page 78, for more information on
&lt;br&gt;the word and words functions used above.&amp;quot;
&lt;br&gt;&lt;br&gt;It should read:
&lt;br&gt;&lt;br&gt;&amp;quot;See Section 8.2 [Text Functions], page 78, for more information on
&lt;br&gt;the lastword function used above.&amp;quot;
&lt;br&gt;&lt;br&gt;The example is with &amp;quot;lastword&amp;quot; and not &amp;quot;word&amp;quot; or &amp;quot;words&amp;quot; which are
&lt;br&gt;also functions.
&lt;br&gt;&lt;br&gt;Sanjiv
&lt;br&gt;--
&lt;br&gt;Sanjiv K. Bhatia
&lt;br&gt;&lt;a href=&quot;http://member.acm.org/~sanjiv&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://member.acm.org/~sanjiv&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Bug-make mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26698795&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Bug-make@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/bug-make&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/bug-make&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Make---Bugs-f1738.html&quot; embed=&quot;fixTarget[1738]&quot; target=&quot;_top&quot; &gt;Gnu - Make - Bugs&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Bug-in-Makefile-document-tp26698795p26698795.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26691521</id>
	<title>Cancelling a Implicit Rule ?</title>
	<published>2009-12-08T02:13:47Z</published>
	<updated>2009-12-08T02:13:47Z</updated>
	<author>
		<name>L.Guo</name>
	</author>
	<content type="html">Hi all:
&lt;br&gt;&lt;br&gt;In my C project, I need to generate version.h and add it into compiling.
&lt;br&gt;And also, I need a 'copy' rule, which copies the output binaries into a dir specified by a environment var COPYDIR.
&lt;br&gt;This is a common need for my projects.
&lt;br&gt;So I design a makefile structure, try to implement it and encounter a problem as followed.
&lt;br&gt;&lt;br&gt;&lt;br&gt;I have a main makefile 'Makefile' and two sub (common) makefile 'default.mk' and 'rules.mk'.
&lt;br&gt;&lt;br&gt;The source files all in 'src' dir, the output in 'out'. As these:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SRCS = src/a.c src/main.c src/version.h
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DEPS = out/a.d out/main.d
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OBJS = out/a.o out/main.o
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TGTS = out/programme
&lt;br&gt;&lt;br&gt;&lt;br&gt;I want to use pattern rules in 'rules.mk' to handle the dependencies generating.
&lt;br&gt;&lt;br&gt;$(OUTDIR)/%.d: $(SRCDIR)/%.c $(OUTDIR)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; @{ set -e; $(RM) $@;\
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;echo 'Generate $@ from $&amp;lt;'\
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$(CC) -M $(CFLAGS) $&amp;lt; &amp;gt; $@.$$$$;\
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' &amp;lt; $@.$$$$ &amp;gt; $@;\
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$(RM) $@.$$$$;\
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&lt;br&gt;$(OBJS): $(OUTDIR)/%.o: $(SRCDIR)/%.c $(OUTDIR)/%.d
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $(CC) -c $(CFLAGS) -o $@ $&amp;lt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;'default.mk' is omited because it just complete some necessary-but-unset vars in 'Makefile'.
&lt;br&gt;&lt;br&gt;&lt;br&gt;When using the whole thing to build my project, 'make' gives me an error report:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; make: *** No rule to make target `main.c', needed by `out/main.d'. &amp;nbsp;Stop.
&lt;br&gt;&lt;br&gt;&lt;br&gt;I know that, for 'rules.mk' including the '.d' files, 'make' need 'out/main.d', and also need 'src/main.c'.
&lt;br&gt;I guess it is using a implict rule to generate '.d' from '.c'. And tried this additional empty rule but failed:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $(OUTDIR)/%.d: %.c
&lt;br&gt;&lt;br&gt;I have no idea why 'main.c' is needed after 'make' using 'src/main.c'.
&lt;br&gt;Here is the output of 'make -d'. (I use -R to make the output shorter.)
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------
&lt;br&gt;Reading makefiles...
&lt;br&gt;Reading makefile `Makefile'...
&lt;br&gt;Reading makefile `default.mk' (search path) (no ~ expansion)...
&lt;br&gt;Reading makefile `rules.mk' (search path) (no ~ expansion)...
&lt;br&gt;Reading makefile `out/a.d' (search path) (no ~ expansion)...
&lt;br&gt;Reading makefile `out/main.d' (search path) (no ~ expansion)...
&lt;br&gt;Updating makefiles....
&lt;br&gt;&amp;nbsp;Considering target file `out/main.d'.
&lt;br&gt;&amp;nbsp; Looking for an implicit rule for `out/main.d'.
&lt;br&gt;&amp;nbsp; Trying pattern rule with stem `main'.
&lt;br&gt;&amp;nbsp; Trying implicit prerequisite `src/main.c'.
&lt;br&gt;&amp;nbsp; Trying rule prerequisite `out'.
&lt;br&gt;&amp;nbsp; Found an implicit rule for `out/main.d'.
&lt;br&gt;&amp;nbsp; &amp;nbsp;Considering target file `src/main.c'.
&lt;br&gt;&amp;nbsp; &amp;nbsp; Looking for an implicit rule for `src/main.c'.
&lt;br&gt;&amp;nbsp; &amp;nbsp; No implicit rule found for `src/main.c'.
&lt;br&gt;&amp;nbsp; &amp;nbsp; Finished prerequisites of target file `src/main.c'.
&lt;br&gt;&amp;nbsp; &amp;nbsp;No need to remake target `src/main.c'.
&lt;br&gt;&amp;nbsp; &amp;nbsp;Considering target file `out'.
&lt;br&gt;&amp;nbsp; &amp;nbsp; Finished prerequisites of target file `out'.
&lt;br&gt;&amp;nbsp; &amp;nbsp;No need to remake target `out'.
&lt;br&gt;&amp;nbsp; &amp;nbsp;Considering target file `main.c'.
&lt;br&gt;&amp;nbsp; &amp;nbsp; File `main.c' does not exist.
&lt;br&gt;&amp;nbsp; &amp;nbsp; Looking for an implicit rule for `main.c'.
&lt;br&gt;&amp;nbsp; &amp;nbsp; No implicit rule found for `main.c'.
&lt;br&gt;&amp;nbsp; &amp;nbsp; Finished prerequisites of target file `main.c'.
&lt;br&gt;&amp;nbsp; &amp;nbsp;Must remake target `main.c'.
&lt;br&gt;make: *** No rule to make target `main.c', needed by `out/main.d'. &amp;nbsp;Stop.
&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;&lt;br&gt;Mainly structure of makefile :
&lt;br&gt;&lt;br&gt;file Makefile :
&lt;br&gt;1: set FILE, DIR and COMPILER vars.
&lt;br&gt;2: include default.mk
&lt;br&gt;3: rule 'all' for TGTS
&lt;br&gt;4: other project specified rules. e.g. rule for out/programme
&lt;br&gt;5: include rules.mk
&lt;br&gt;&lt;br&gt;file default.mk :
&lt;br&gt;1: complete vars. e.g. DEPS, SRCDIR, OUTDIR, etc.
&lt;br&gt;&lt;br&gt;file rules.mk :
&lt;br&gt;1: common rules. e.g. clean, copy, $(OUTDIR)/%.d, $(OBJS), $(SRCDIR)/version.h
&lt;br&gt;2: include dependencies
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Regards
&lt;br&gt;--------------
&lt;br&gt;L.Guo
&lt;br&gt;2009-12-08
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-make mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26691521&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-make@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/help-make&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/help-make&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Make---Help-f1739.html&quot; embed=&quot;fixTarget[1739]&quot; target=&quot;_top&quot; &gt;Gnu - Make - Help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Cancelling-a-Implicit-Rule---tp26691521p26691521.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26680139</id>
	<title>Re: Running a command always but only once (even if included Makefiles are remade)</title>
	<published>2009-12-07T07:20:09Z</published>
	<updated>2009-12-07T07:20:09Z</updated>
	<author>
		<name>Paul Smith-20</name>
	</author>
	<content type="html">On Mon, 2009-12-07 at 12:01 +0100, Christoph Groth wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; in the Makefile of my project I would like to always run (before
&lt;br&gt;&amp;gt; everything else) a command which updates the submodules of the project.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I do this by having the line
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; $(shell to-be-run)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; somewhere in the Makefile.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; However, when the automatically generated dependencies are re-generated,
&lt;br&gt;&amp;gt; which happens every time some source file has been changed, the Makefile
&lt;br&gt;&amp;gt; is re-initialized. &amp;nbsp;As a consequence, `to-be-run' is executed a second
&lt;br&gt;&amp;gt; time.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I wonder how to tell GNU make to execute a command always, but only
&lt;br&gt;&amp;gt; once, even if some of the included Makefiles are re-generated.
&lt;/div&gt;&lt;br&gt;You can check the make variable MAKE_RESTARTS; if it's set then make has
&lt;br&gt;been restarted (due to makefiles being regenerated). &amp;nbsp;So, something like
&lt;br&gt;this should do what you want:
&lt;br&gt;&lt;br&gt;ifndef MAKE_RESTARTS
&lt;br&gt;$(shell to-b-run)
&lt;br&gt;endif
&lt;br&gt;&lt;br&gt;(untested)
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-make mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26680139&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-make@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/help-make&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/help-make&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Make---Help-f1739.html&quot; embed=&quot;fixTarget[1739]&quot; target=&quot;_top&quot; &gt;Gnu - Make - Help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Running-a-command-always-but-only-once-%28even-if-included-Makefiles-are-remade%29-tp26675802p26680139.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26675802</id>
	<title>Running a command always but only once (even if included Makefiles are remade)</title>
	<published>2009-12-07T03:01:44Z</published>
	<updated>2009-12-07T03:01:44Z</updated>
	<author>
		<name>Christoph Groth-2</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;in the Makefile of my project I would like to always run (before
&lt;br&gt;everything else) a command which updates the submodules of the project.
&lt;br&gt;&lt;br&gt;I do this by having the line
&lt;br&gt;&lt;br&gt;$(shell to-be-run)
&lt;br&gt;&lt;br&gt;somewhere in the Makefile.
&lt;br&gt;&lt;br&gt;However, when the automatically generated dependencies are re-generated,
&lt;br&gt;which happens every time some source file has been changed, the Makefile
&lt;br&gt;is re-initialized. &amp;nbsp;As a consequence, `to-be-run' is executed a second
&lt;br&gt;time.
&lt;br&gt;&lt;br&gt;I wonder how to tell GNU make to execute a command always, but only
&lt;br&gt;once, even if some of the included Makefiles are re-generated.
&lt;br&gt;&lt;br&gt;thanks,
&lt;br&gt;Christoph
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-make mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26675802&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-make@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/help-make&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/help-make&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Make---Help-f1739.html&quot; embed=&quot;fixTarget[1739]&quot; target=&quot;_top&quot; &gt;Gnu - Make - Help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Running-a-command-always-but-only-once-%28even-if-included-Makefiles-are-remade%29-tp26675802p26675802.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26672176</id>
	<title>new french translation</title>
	<published>2009-12-06T16:12:05Z</published>
	<updated>2009-12-06T16:12:05Z</updated>
	<author>
		<name>Christophe Combelles</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;The current french translation of GNU Make has a lot of mistakes and 
&lt;br&gt;mis-interpretations. I'm the new maintainer of this translation and I have 
&lt;br&gt;reviewed and corrected it.
&lt;br&gt;The new translation is available here :
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://translationproject.org/PO-files/fr/make-3.81.fr.po&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://translationproject.org/PO-files/fr/make-3.81.fr.po&lt;/a&gt;&lt;br&gt;&lt;br&gt;regards,
&lt;br&gt;Christophe Combelles
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Bug-make mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26672176&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Bug-make@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/bug-make&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/bug-make&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Make---Bugs-f1738.html&quot; embed=&quot;fixTarget[1738]&quot; target=&quot;_top&quot; &gt;Gnu - Make - Bugs&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/new-french-translation-tp26672176p26672176.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26668231</id>
	<title>do formats of vpath and auto variable file names always agree?</title>
	<published>2009-12-06T11:41:17Z</published>
	<updated>2009-12-06T11:41:17Z</updated>
	<author>
		<name>Mark Galeck (CW)</name>
	</author>
	<content type="html">Hello, &amp;nbsp;
&lt;br&gt;&lt;br&gt;It says in the manual:
&lt;br&gt;&lt;br&gt;$&amp;lt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; The name of the first prerequisite
&lt;br&gt;&lt;br&gt;&lt;br&gt;Is it guaranteed that, if vpath is used, then the directory part of the value of $&amp;lt; is in fact, one of the vpath paths? &amp;nbsp;
&lt;br&gt;&lt;br&gt;(it could be, that the value of $&amp;lt; were an absolute path for example, while vpath paths are relative - is this kind of thing guaranteed not to happen?).
&lt;br&gt;&lt;br&gt;What about the separator between the directory path and the file name, is it guaranteed to always be &amp;quot;/&amp;quot;, even on Windows?
&lt;br&gt;&lt;br&gt;Similar questions about other auto variables that depend on vpath/VPATH. &amp;nbsp;
&lt;br&gt;&lt;br&gt;If these things are guaranteed, can they be put in the manual? &amp;nbsp;
&lt;br&gt;&lt;br&gt;Mark
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-make mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26668231&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-make@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/help-make&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/help-make&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Make---Help-f1739.html&quot; embed=&quot;fixTarget[1739]&quot; target=&quot;_top&quot; &gt;Gnu - Make - Help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/do-formats-of-vpath-and-auto-variable-file-names-always-agree--tp26668231p26668231.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26661715</id>
	<title>[bug #28189] SIGPIPE when gmake invoked recursively and vpath specified</title>
	<published>2009-12-05T18:40:51Z</published>
	<updated>2009-12-05T18:40:51Z</updated>
	<author>
		<name>Eli Zaretskii-4</name>
	</author>
	<content type="html">&lt;br&gt;URL:
&lt;br&gt;&amp;nbsp; &amp;lt;&lt;a href=&quot;http://savannah.gnu.org/bugs/?28189&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://savannah.gnu.org/bugs/?28189&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Summary: SIGPIPE when gmake invoked recursively and vpath
&lt;br&gt;specified
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Project: make
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Submitted by: yozh
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Submitted on: Sun 06 Dec 2009 02:40:50 AM GMT
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Severity: 3 - Normal
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Item Group: None
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Status: None
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Privacy: Public
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assigned to: None
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Open/Closed: Open
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Discussion Lock: Any
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Component Version: None
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Operating System: None
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Fixed Release: None
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Triage Status: None
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; _______________________________________________________
&lt;br&gt;&lt;br&gt;Details:
&lt;br&gt;&lt;br&gt;=====
&lt;br&gt;# cat m1.mk
&lt;br&gt;xx:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gmake -j2 -f m2.mk xxx.dst yyy.dst
&lt;br&gt;&lt;br&gt;# cat m2.mk
&lt;br&gt;vpath %.dst /
&lt;br&gt;&lt;br&gt;xxx.dst:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; true
&lt;br&gt;&lt;br&gt;yyy.dst:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; true
&lt;br&gt;&lt;br&gt;# gmake -j2 -f ./m1.mk
&lt;br&gt;gmake -j2 -f m2.mk xxx.dst yyy.dst
&lt;br&gt;gmake[1]: Entering directory `/place/home/nga/tmp/qwqw'
&lt;br&gt;gmake[1]: warning: -jN forced in submake: disabling jobserver mode.
&lt;br&gt;true
&lt;br&gt;true
&lt;br&gt;gmake: *** [xx] Broken pipe: 13
&lt;br&gt;zsh: exit 2 &amp;nbsp; &amp;nbsp; gmake -j2 -f ./m1.mk
&lt;br&gt;&lt;br&gt;# gmake --version
&lt;br&gt;GNU Make 3.81
&lt;br&gt;Copyright (C) 2006 &amp;nbsp;Free Software Foundation, Inc.
&lt;br&gt;This is free software; see the source for copying conditions.
&lt;br&gt;There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
&lt;br&gt;PARTICULAR PURPOSE.
&lt;br&gt;&lt;br&gt;This program built for amd64-portbld-freebsd7.0
&lt;br&gt;=====
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; _______________________________________________________
&lt;br&gt;&lt;br&gt;Reply to this item at:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;lt;&lt;a href=&quot;http://savannah.gnu.org/bugs/?28189&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://savannah.gnu.org/bugs/?28189&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&amp;nbsp; Message sent via/by Savannah
&lt;br&gt;&amp;nbsp; &lt;a href=&quot;http://savannah.gnu.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://savannah.gnu.org/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Bug-make mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26661715&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Bug-make@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/bug-make&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/bug-make&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Make---Bugs-f1738.html&quot; embed=&quot;fixTarget[1738]&quot; target=&quot;_top&quot; &gt;Gnu - Make - Bugs&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-bug--28189--SIGPIPE-when-gmake-invoked-recursively-and-vpath-specified-tp26661715p26661715.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26647966</id>
	<title>RE: is this a bug?</title>
	<published>2009-12-04T11:30:41Z</published>
	<updated>2009-12-04T11:30:41Z</updated>
	<author>
		<name>Mark Galeck (CW)</name>
	</author>
	<content type="html">&amp;gt;Probably we use alloca, and this blows up the stack. &amp;nbsp;50K file names
&lt;br&gt;100 characters each is about 0.5MB.
&lt;br&gt;&lt;br&gt;No... 5MB, I checked the size of the whole thing it's about 5MB. &amp;nbsp;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-make mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26647966&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-make@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/help-make&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/help-make&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Make---Help-f1739.html&quot; embed=&quot;fixTarget[1739]&quot; target=&quot;_top&quot; &gt;Gnu - Make - Help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/is-this-a-bug--tp26637619p26647966.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26647934</id>
	<title>Re: is this a bug?</title>
	<published>2009-12-04T11:28:25Z</published>
	<updated>2009-12-04T11:28:25Z</updated>
	<author>
		<name>Eli Zaretskii</name>
	</author>
	<content type="html">&lt;div class='shrinkable-quote'&gt;&amp;gt; From: &amp;quot;Mark Galeck (CW)&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26647934&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mgaleck@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Date: Fri, 4 Dec 2009 11:22:37 -0800
&lt;br&gt;&amp;gt; Accept-Language: en-US
&lt;br&gt;&amp;gt; acceptlanguage: en-US
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt;If you're then passing that wildcard list to a program, you could very well be exceeding the maximum argument length limit of your shell.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; No, I isolated this so there is nothing else, only 
&lt;br&gt;&amp;gt; foobar: &amp;nbsp;\
&lt;br&gt;&amp;gt; $(wildcard \
&lt;br&gt;&amp;gt; &amp;lt;file path&amp;gt; \
&lt;br&gt;&amp;gt; &amp;lt;file path&amp;gt; \
&lt;br&gt;&amp;gt; (... 50000 file paths, average 100 characters each)
&lt;br&gt;&amp;gt; &amp;lt;file path&amp;gt;\
&lt;br&gt;&amp;gt; )
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; And then 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt;make foobar
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; produces 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt;make.exe -r foobar
&lt;br&gt;&amp;gt; make.exe: Interrupt/Exception caught (code = 0xc00000fd, addr = 0x4227d3)
&lt;/div&gt;&lt;br&gt;Probably we use alloca, and this blows up the stack. &amp;nbsp;50K file names
&lt;br&gt;100 characters each is about 0.5MB.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-make mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26647934&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-make@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/help-make&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/help-make&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Make---Help-f1739.html&quot; embed=&quot;fixTarget[1739]&quot; target=&quot;_top&quot; &gt;Gnu - Make - Help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/is-this-a-bug--tp26637619p26647934.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26647820</id>
	<title>RE: is this a bug?</title>
	<published>2009-12-04T11:22:37Z</published>
	<updated>2009-12-04T11:22:37Z</updated>
	<author>
		<name>Mark Galeck (CW)</name>
	</author>
	<content type="html">&amp;gt;If you're then passing that wildcard list to a program, you could very well be exceeding the maximum argument length limit of your shell.
&lt;br&gt;&lt;br&gt;&lt;br&gt;No, I isolated this so there is nothing else, only 
&lt;br&gt;foobar: &amp;nbsp;\
&lt;br&gt;$(wildcard \
&lt;br&gt;&amp;lt;file path&amp;gt; \
&lt;br&gt;&amp;lt;file path&amp;gt; \
&lt;br&gt;(... 50000 file paths, average 100 characters each)
&lt;br&gt;&amp;lt;file path&amp;gt;\
&lt;br&gt;)
&lt;br&gt;&lt;br&gt;And then 
&lt;br&gt;&lt;br&gt;&amp;gt;make foobar
&lt;br&gt;&lt;br&gt;produces 
&lt;br&gt;&lt;br&gt;&amp;gt;make.exe -r foobar
&lt;br&gt;make.exe: Interrupt/Exception caught (code = 0xc00000fd, addr = 0x4227d3)
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-make mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26647820&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-make@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/help-make&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/help-make&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Make---Help-f1739.html&quot; embed=&quot;fixTarget[1739]&quot; target=&quot;_top&quot; &gt;Gnu - Make - Help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/is-this-a-bug--tp26637619p26647820.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26647606</id>
	<title>Re: is this a bug?</title>
	<published>2009-12-04T11:07:14Z</published>
	<updated>2009-12-04T11:07:14Z</updated>
	<author>
		<name>Stephan Beal-2</name>
	</author>
	<content type="html">&lt;div class=&quot;gmail_quote&quot;&gt;On Fri, Dec 4, 2009 at 7:46 PM, Mark Galeck (CW) &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26647606&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mgaleck@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;
Well, I found what was causing this.  I attempted to call the&lt;br&gt;
$(wildcard ...&lt;br&gt;
function, with about 50,000 arguments (full path names, on average 100 characters, so the total size of all strings that were passed to wildcard, is about 5MB).  Is this a bad idea?  :)&lt;br&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;
If you&amp;#39;re then passing that wildcard list to a program, you could very well be exceeding the maximum argument length limit of your shell. Early versions of DOS&amp;#39;s &lt;a href=&quot;http://command.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;command.com&lt;/a&gt; allowed only something like 128 characters per command line, and i _think_ the average limit on Unix is 32k (the maximum signed int value, IIRC, since that&amp;#39;s what main() takes as its argc type).&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;-- &lt;br&gt;----- stephan beal&lt;br&gt;&lt;a href=&quot;http://wanderinghorse.net/home/stephan/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://wanderinghorse.net/home/stephan/&lt;/a&gt;&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Help-make mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26647606&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-make@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/help-make&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/help-make&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Make---Help-f1739.html&quot; embed=&quot;fixTarget[1739]&quot; target=&quot;_top&quot; &gt;Gnu - Make - Help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/is-this-a-bug--tp26637619p26647606.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26647283</id>
	<title>RE: is this a bug?</title>
	<published>2009-12-04T10:46:17Z</published>
	<updated>2009-12-04T10:46:17Z</updated>
	<author>
		<name>Mark Galeck (CW)</name>
	</author>
	<content type="html">Well, I found what was causing this. &amp;nbsp;I attempted to call the 
&lt;br&gt;$(wildcard ...
&lt;br&gt;function, with about 50,000 arguments (full path names, on average 100 characters, so the total size of all strings that were passed to wildcard, is about 5MB). &amp;nbsp;Is this a bad idea? &amp;nbsp;:) &amp;nbsp;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt;make.exe -r --version
&lt;br&gt;GNU Make 3.81
&lt;br&gt;Copyright (C) 2006 &amp;nbsp;Free Software Foundation, Inc.
&lt;br&gt;This is free software; see the source for copying conditions.
&lt;br&gt;There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
&lt;br&gt;PARTICULAR PURPOSE.
&lt;br&gt;&lt;br&gt;This program built for i386-pc-mingw32
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: Greg Chicares [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26647283&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gchicares@...&lt;/a&gt;] 
&lt;br&gt;&lt;br&gt;&lt;br&gt;'make' caught a stack overflow. 
&lt;br&gt;It would be helpful to know what the makefile contains, and what
&lt;br&gt;&amp;nbsp; make --version
&lt;br&gt;says.
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-make mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26647283&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-make@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/help-make&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/help-make&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Make---Help-f1739.html&quot; embed=&quot;fixTarget[1739]&quot; target=&quot;_top&quot; &gt;Gnu - Make - Help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/is-this-a-bug--tp26637619p26647283.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26644663</id>
	<title>Re: How specify dependences on URL</title>
	<published>2009-12-04T08:00:06Z</published>
	<updated>2009-12-04T08:00:06Z</updated>
	<author>
		<name>Peng Yu</name>
	</author>
	<content type="html">On Fri, Dec 4, 2009 at 8:37 AM, Allan Odgaard
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26644663&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;682E7718-3533-4FED-AF3B-CD0D7E604283@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On 4 Dec 2009, at 14:19, Peng Yu wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Suppose I want to download the file &lt;a href=&quot;http://some_website/some_file&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://some_website/some_file&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; whenever it is newer than the local file. This needs the specification
&lt;br&gt;&amp;gt;&amp;gt; of the dependency on URLs. I'm wondering if it is possible to do so in
&lt;br&gt;&amp;gt;&amp;gt; gnu make.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; URLs don’t have dates. A GET/HEAD request may return a ‘Last-Modified’
&lt;br&gt;&amp;gt; header and you can do conditional requests using that or the entity tag, but
&lt;br&gt;&amp;gt; these things are beyond make.
&lt;/div&gt;&lt;br&gt;Some programs (e.g. rsync) support various network protocols. It would
&lt;br&gt;be nice that gnu make also support these protocols. Will this
&lt;br&gt;functionality be considered to be added in gnu make in the future?
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-make mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26644663&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-make@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/help-make&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/help-make&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Make---Help-f1739.html&quot; embed=&quot;fixTarget[1739]&quot; target=&quot;_top&quot; &gt;Gnu - Make - Help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-specify-dependences-on-URL-tp26642385p26644663.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26643516</id>
	<title>Re: How specify dependences on URL</title>
	<published>2009-12-04T06:37:45Z</published>
	<updated>2009-12-04T06:37:45Z</updated>
	<author>
		<name>Allan Odgaard-8</name>
	</author>
	<content type="html">On 4 Dec 2009, at 14:19, Peng Yu wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Suppose I want to download the file &lt;a href=&quot;http://some_website/some_file&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://some_website/some_file&lt;/a&gt;&lt;br&gt;&amp;gt; whenever it is newer than the local file. This needs the specification
&lt;br&gt;&amp;gt; of the dependency on URLs. I'm wondering if it is possible to do so in
&lt;br&gt;&amp;gt; gnu make.
&lt;br&gt;&lt;br&gt;URLs don’t have dates. A GET/HEAD request may return a ‘Last-Modified’ &amp;nbsp;
&lt;br&gt;header and you can do conditional requests using that or the entity &amp;nbsp;
&lt;br&gt;tag, but these things are beyond make.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-make mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26643516&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-make@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/help-make&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/help-make&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Make---Help-f1739.html&quot; embed=&quot;fixTarget[1739]&quot; target=&quot;_top&quot; &gt;Gnu - Make - Help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-specify-dependences-on-URL-tp26642385p26643516.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26642926</id>
	<title>Re: make undefined $(MY_VARIABLE) usage query</title>
	<published>2009-12-04T05:48:28Z</published>
	<updated>2009-12-04T05:48:28Z</updated>
	<author>
		<name>Bugzilla from jg@jguk.org</name>
	</author>
	<content type="html">2009/12/4 Paul Smith &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26642926&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;psmith@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt; On Fri, 2009-12-04 at 11:00 +0000, Jon Grant wrote:
&lt;br&gt;&amp;gt;&amp;gt; I looked through the manual (3.81) and could not find a way to get GNU
&lt;br&gt;&amp;gt;&amp;gt; Make to display an error, or warning when a variable is used without
&lt;br&gt;&amp;gt;&amp;gt; being defined.  like $(MY_VARIABLE)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Not sure where you were looking, but the best place to start is the
&lt;br&gt;&amp;gt; &amp;quot;Summary of Options&amp;quot; section in the manual.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Look there for the --warn-undefined-variables option.
&lt;br&gt;&lt;br&gt;(Just to declare, I am using the Cygwin build)
&lt;br&gt;&lt;br&gt;I noticed that if I add the additional parameter to our MAKEFLAGS, and
&lt;br&gt;misspell it, the -debug mode seems to get enabled. Is this intended? I
&lt;br&gt;had expected invalid parameters to be warned, and ignored.
&lt;br&gt;&lt;br&gt;MAKEFLAGS		:= --no-print-directory
&lt;br&gt;MAKEFLAGS		:= -warn-undefined-variables
&lt;br&gt;export MAKEFLAGS
&lt;br&gt;&lt;br&gt;output is lots of:
&lt;br&gt;&lt;br&gt;&amp;nbsp;Considering target file `makefile'.
&lt;br&gt;&amp;nbsp; Looking for an implicit rule for `makefile'.
&lt;br&gt;&amp;nbsp; No implicit rule found for `makefile'.
&lt;br&gt;&amp;nbsp; Finished prerequisites of target file `makefile'.
&lt;br&gt;&amp;nbsp;No need to remake target `makefile'.
&lt;br&gt;Updating goal targets....
&lt;br&gt;Considering target file `all'.
&lt;br&gt;&amp;nbsp;File `all' does not exist.
&lt;br&gt;&amp;nbsp;Looking for an implicit rule for `all'.
&lt;br&gt;&amp;nbsp;No implicit rule found for `all'.
&lt;br&gt;&amp;nbsp; Considering target file `/cygdrive/c/samples/dir.lib'.
&lt;br&gt;&amp;nbsp; &amp;nbsp; Considering target file `obj/utf8.o'.
&lt;br&gt;&lt;br&gt;Best regards, Jon
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-make mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26642926&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-make@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/help-make&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/help-make&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Make---Help-f1739.html&quot; embed=&quot;fixTarget[1739]&quot; target=&quot;_top&quot; &gt;Gnu - Make - Help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/make-undefined-%24%28MY_VARIABLE%29-usage-query-tp26642047p26642926.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26642906</id>
	<title>Re: make undefined $(MY_VARIABLE) usage query</title>
	<published>2009-12-04T05:25:53Z</published>
	<updated>2009-12-04T05:25:53Z</updated>
	<author>
		<name>Bugzilla from jg@jguk.org</name>
	</author>
	<content type="html">2009/12/4 Paul Smith &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26642906&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;psmith@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt; On Fri, 2009-12-04 at 11:00 +0000, Jon Grant wrote:
&lt;br&gt;&amp;gt;&amp;gt; I looked through the manual (3.81) and could not find a way to get GNU
&lt;br&gt;&amp;gt;&amp;gt; Make to display an error, or warning when a variable is used without
&lt;br&gt;&amp;gt;&amp;gt; being defined.  like $(MY_VARIABLE)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Not sure where you were looking, but the best place to start is the
&lt;br&gt;&amp;gt; &amp;quot;Summary of Options&amp;quot; section in the manual.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Look there for the --warn-undefined-variables option.
&lt;br&gt;&lt;br&gt;Great, thank you for the pointer.
&lt;br&gt;Jon
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-make mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26642906&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-make@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/help-make&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/help-make&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Make---Help-f1739.html&quot; embed=&quot;fixTarget[1739]&quot; target=&quot;_top&quot; &gt;Gnu - Make - Help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/make-undefined-%24%28MY_VARIABLE%29-usage-query-tp26642047p26642906.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26642385</id>
	<title>How specify dependences on URL</title>
	<published>2009-12-04T05:19:03Z</published>
	<updated>2009-12-04T05:19:03Z</updated>
	<author>
		<name>Peng Yu</name>
	</author>
	<content type="html">Suppose I want to download the file &lt;a href=&quot;http://some_website/some_file&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://some_website/some_file&lt;/a&gt;&lt;br&gt;whenever it is newer than the local file. This needs the specification
&lt;br&gt;of the dependency on URLs. I'm wondering if it is possible to do so in
&lt;br&gt;gnu make.
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-make mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26642385&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-make@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/help-make&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/help-make&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Make---Help-f1739.html&quot; embed=&quot;fixTarget[1739]&quot; target=&quot;_top&quot; &gt;Gnu - Make - Help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-specify-dependences-on-URL-tp26642385p26642385.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26642355</id>
	<title>Re: is this a bug?</title>
	<published>2009-12-04T05:15:39Z</published>
	<updated>2009-12-04T05:15:39Z</updated>
	<author>
		<name>Greg Chicares-2</name>
	</author>
	<content type="html">On 2009-12-04 04:07Z, Mark Galeck (CW) wrote:
&lt;br&gt;&amp;gt;&amp;gt;make.exe -r
&lt;br&gt;&amp;gt; make.exe: Interrupt/Exception caught (code = 0xc00000fd, addr = 0x4227d3)
&lt;br&gt;&lt;br&gt;'make' caught a stack overflow. You might try adding the '-d' flag:
&lt;br&gt;&amp;nbsp; make -dr
&lt;br&gt;It would be helpful to know what the makefile contains, and what
&lt;br&gt;&amp;nbsp; make --version
&lt;br&gt;says.
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Help-make mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26642355&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Help-make@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/help-make&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/help-make&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Make---Help-f1739.html&quot; embed=&quot;fixTarget[1739]&quot; target=&quot;_top&quot; &gt;Gnu - Make - Help&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/is-this-a-bug--tp26637619p26642355.html" />
</entry>

</feed>
