Georg-Johann Lay wrote:
> make clean echo clean clean
That proves that your make does accept the command-line target. So it must be the shell or ?? something. Not a problem with make I think. your Makefile and sh -c 'make clean' call works okay within cygwin for me: $ sh -c 'make clean' echo clean clean $ sh --version GNU bash, version 3.1.17(6)-release (i686-pc-cygwin) Copyright (C) 2005 Free Software Foundation, Inc. $ make -v GNU Make 3.81
Is there anything I can do? It is obviously a problem of make and not of sh.
Is your make aliased to something else or is it a script ? And if it is invoked from sh is the same make invoked? Could there be any environment difference causing the problem? which make sh -c 'which make' ls -al `which make` alias |grep make sh -c 'alias |grep make' Looking for things like that might be worthwhile. James. e.g. for me: $ alias |grep make alias makerpsgb='nice -6 make STACKS=gb -j 5 2>&1 >make.log |tee makeerr.log' alias makerpsiups='nice -6 make STACKS=iups -j 5 2>&1 >make.log |tee makeerr.log' alias makerpsrel='nice -6 make BUILD=release -j 5 2>&1 >make.log |tee makeerr.log' $ sh -c 'alias |grep make' ** nothing ** _______________________________________________ Bug-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-make
