[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug: make igores options, switches and targets

From: James Coleman
Subject: Re: Bug: make igores options, switches and targets
Date: Fri, 19 Jan 2007 11:56:48 +0000
User-agent: Thunderbird (Windows/20061207)

Georg-Johann Lay wrote:
 > make clean
echo 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

$ 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.


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 
alias makerpsrel='nice -6 make BUILD=release -j 5 2>&1 >make.log |tee 

$ sh -c 'alias |grep make'

** nothing **

reply via email to

[Prev in Thread] Current Thread [Next in Thread]