From: SourceForge.net <no...@so...> - 2005-02-17 16:54:41
|
Bugs item #1040913, was opened at 2004-10-05 13:22 Message generated for change (Comment added) made by arcanum You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=520074&aid=1040913&group_id=68108 Category: Interface (example) Group: None Status: Open Resolution: None Priority: 3 Submitted By: JamesR (jamesrusso) Assigned to: Eric Weddington (arcanum) >Summary: 20040720: Make not accepting arguments Initial Comment: I am using WinAVR-20040720 and am having a problem with Make and arguments. I have a muti-directory build where a makefile must call make after going into other directories. The problem is that the target argument is never passed to the make application, cause the first (typically all:) target to be exectued. Here are two simple make files which show the problem Makefile in root directory -- all: cd dir1 ; $(MAKE) target -- in the 'dir1' directory --- all: @echo "all" target: @echo "target" --- (Be sure to use tabs where needed).. Here, when you run the makefile in the root directory it should print "target", but instead it prints "all". When the remote execution occurs, I think it actually creates a shell script and executes the shell script. Creating a simple shell script can produce the same issue: test.sh ---- make target --- Running test.sh in dir1 will produce 'all' and not 'target'. I think this is likely a cygwin bug, but I wanted to post it here first. Please contact me for any other information. -jr ---------------------------------------------------------------------- >Comment By: Eric Weddington (arcanum) Date: 2005-02-17 09:54 Message: Logged In: YES user_id=543419 James, Could you try the 20050214 release and see if your problem still exists? Thanks Eric ---------------------------------------------------------------------- Comment By: Matthias Ringwald (freckle) Date: 2004-12-02 01:39 Message: Logged In: YES user_id=687107 hi, I've made a similar but different observation on winavr 2004-07-20 in most cases, make is able to pass on arguments. e.g. all: make -C subdir works but not, if the make is executed from within a for-loop LIST = A B %: for item in $(LIST); do echo "calling make -C $$item $@ ...."; $(MAKE) -C $$item $@ || exit 1; fi; done all: here in this case, the echo gives the correct output but the make command is actually executed without parameters. here resulting in an infinite loop. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=520074&aid=1040913&group_id=68108 |