#135705 - kusma - Wed Jul 25, 2007 5:58 pm
Given this makefile:
I get this output with cygwin make (and other unix-builds):
Whereas the make that comes with devkitPro (it's a part of msys, it seems) gives me this:
Now, this has become a headache to me, cause I'm working on a new make system for pimpmobile, and the ability to set variables from functions that get evaluated is really handy. It seems to me that the make-version included in devkitPro is 7 years old, and this might be the cause of my problem.
Here's the version of my cygwin-make:
And here's the version of my msys-make:
Does anyone know any workarounds for this, and/or will the make-version in msys ever be updated?
Code: |
define template
$1_VAR := $1 endef $(eval $(call template,TEST)) test: echo $(TEST_VAR) |
I get this output with cygwin make (and other unix-builds):
Quote: |
$ /c/cygwin/bin/make -f test.mak
echo TEST TEST $ |
Whereas the make that comes with devkitPro (it's a part of msys, it seems) gives me this:
Quote: |
$ /c/gba/devkitPro/msys/bin/make -f test.mak
echo $ |
Now, this has become a headache to me, cause I'm working on a new make system for pimpmobile, and the ability to set variables from functions that get evaluated is really handy. It seems to me that the make-version included in devkitPro is 7 years old, and this might be the cause of my problem.
Here's the version of my cygwin-make:
Quote: |
$ /c/cygwin/bin/make --version
GNU Make 3.81 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This program built for i686-pc-cygwin $ |
And here's the version of my msys-make:
Quote: |
$ /c/gba/devkitPro/msys/bin/make --version
GNU Make version 3.79.1, by Richard Stallman and Roland McGrath. Built for i686-pc-msys Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Report bugs to <bug-make@gnu.org>. $ |
Does anyone know any workarounds for this, and/or will the make-version in msys ever be updated?