Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <400506B3.6000902@ieee.org> Date: Wed, 14 Jan 2004 09:06:59 +0000 From: Jason Pearce User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031208 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: bug in cygwin build of Make Content-Type: multipart/mixed; boundary="------------030400000101080702030306" --------------030400000101080702030306 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit I have discovered a problem in cygwin's Make. I am calling a sub-make that goes to another directory. That bit works fine, but the Makefiles have a variable set from a shell command. That shell seems to be spawned from the wrong directory. I have created a small example illustrating the problem dir2/Makefile: --------------- VARIABLE = $(shell echo $$PWD) target : ${MAKE} -C ../dir1 sources @echo VARIABLE set to ${VARIABLE} dir1/Makefile: -------------- VARIABLE = $(shell echo $$PWD) sources : @echo VARIABLE set to ${VARIABLE} Then, from dir2 run "make target" and I get the following output: make -C ../dir1 sources make[1]: Entering directory `/tmp/Make/dir1' VARIABLE set to /tmp/Make/dir2 make[1]: Leaving directory `/tmp/Make/dir1' VARIABLE set to /tmp/Make/dir2 You see that the sub-make's VARIABLE is set to "/tmp/Make/dir2" not "/tmp/Make/dir1". Running the same thing from Linux gets the result I expected. (Example and cycheck output are atatched) Jason --------------030400000101080702030306 Content-Type: application/x-gzip; name="make.tar.gz" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="make.tar.gz" H4sIACAEBUAAA+1ceXPbOLLPv+sqfwe8fXk1SW0kETx0MOWqUSQ51o6uMmU7 s6stDU1SEmNeRVI+srX72V8DPMRLdIZOMu9g55AI/BrdaHQ3GiRtU77TWq++ LzEMz3QEAT4Z3Glj+gl/yWdErzBpZBmM2/wr6O2w7CskfGe9KO09X3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KMZLPIQunRPf1Ds5DNNWlk O43sHkd2kkgunxUBSW6UpJv5okwbIpkMks9nBoKEciiNhDQLWD6HjO8KpKQX jRkfmRNILu1zFGlvcymZrGbaPwgy40URks/Pnf6Acpa4ZpfJZVpTzsmmO8Ln zJQAeUd+HiOPTPscQYZLmW4uXE3b0Swvu3FzcJzDDpv2zwCZKUTo0U/J5JAQ yfTaGWT7cwZJ7iWgLAlFmYEg12AqBwoxrxzp2kp244IZsVmnB6SX37QRzV/Z NXKVgkpAgH0rZ/nI5VLNhV7nek+WgjIEuwwUF2wa6WlqFkfGZLLyAblr5KcE NVgTp8sb+utx8mPC3MFQKX8CJJzaFDnjdvRXHmEmqWqAJJVvCgletyZ1LdNh o/KSIB9zQJgRm/dPko0LahvYj3DGl/ZWwRYLdVXGQQD5QH4xUH7uXbLDZpA7 XckVtSTictmmaHsHPQvW/Uv8imhqTJzPdX/0D1nXVFNNNdVUU0011VRTTTXV VFNNNdVUU0011VRTTTXVVFNNNdVUU0011VTTd6L/Bv/mE4UAeAAA --------------030400000101080702030306 Content-Type: text/plain; charset=us-ascii -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ --------------030400000101080702030306--