[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug: make igores options, switches and targets
From: |
Georg-Johann Lay |
Subject: |
Bug: make igores options, switches and targets |
Date: |
Thu, 18 Jan 2007 22:28:12 +0100 |
User-agent: |
Mozilla Thunderbird 1.0.7 (Windows/20050923) |
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 <address@hidden>
- Bug: make igores options, switches and targets,
Georg-Johann Lay <=