This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: zsh & make


> -----Original Message-----
> From: cygwin-owner On Behalf Of Daniel Clausen
> Sent: 27 April 2004 16:27

> When building my project with make under zsh and looking at its
> build-log afterwards, I noticed that the following error occured:
> 
> [begin error]
> gmake[5]: Entering directory 
> `/c/work/Projects/XYZ/categories/TrxTables/unittest'
> basename: too few arguments
> Try `basename --help' for more information.
> (last two lines repeated 8 times)
> [end error]
> 
> 
> We use 'basename' only in one place in the Makefiles and it looks
> like this:
> 
> COMPONENT_NAME = $(shell basename `pwd`)

> Any idea how to debug this further?

  For debugging it, you might be able to get something useful like this:

> COMPONENT_NAME = $(shell basename `pwd | tee i-was-here-.txt`)

  Which should at least tell you exactly how it's getting invoked.  Or you
could try

> COMPONENT_NAME = $(shell echo basename `pwd` > command-was-this.txt &&
basename `pwd`)

..or any number of similar variants.

    cheers, 
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]