Hi you experts,

I have some trouble with GNU make. The make comes from WinAVR, a distribution of avr-gcc for Win32, i.e. mingw. It is the most recent build from 2006-04-21

Consider the following Makefile:

# START
.PHONY: all clean

all:
        echo all

clean:
        echo clean
#END

And the following commands:

> make clean
echo clean
clean

> sh -c 'make clean'
echo all
all

> sh -c 'echo clean'
clean

So there is no way to use make recursively or to run it from within a shell script or a Makefile, because it does not recognize any option, switch or target.

Is there anything I can do? It is obviously a problem of make and not of sh.

Best regards,

Georg-Johann Lay




Some more info:

> sh --version
GNU bash, version 2.04.0(1)-release (i686-pc-msys)

> make --version
GNU Make 3.80

> make --help
...
This program built for i386-pc-mingw32
Report bugs to <[email protected]>



_______________________________________________
Bug-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to