cygwin's [g]make 3.81 seems not to understand conditionals

2007-07-18 Thread Carlo Florendo
Hi Guys, I've got (and attached) this simple Makefile that checks the build platform of a machine. Here's the cut-and-pasted content of the Makefile: PLATFORM=$(shell uname -s | cut -f 1 -d | cut -f 1 -d _); dummy: ifeq (${PLATFORM}, CYGWIN) echo cygwin; else echo linux; endif

Re: cygwin's [g]make 3.81 seems not to understand conditionals

2007-07-18 Thread David Rothenberger
On 7/18/2007 9:03 PM, Carlo Florendo wrote: I've got (and attached) this simple Makefile that checks the build platform of a machine. Here's the cut-and-pasted content of the Makefile: PLATFORM=$(shell uname -s | cut -f 1 -d | cut -f 1 -d _); Try removing the trailing semicolon. It is not

[SOLVED] Re: cygwin's [g]make 3.81 seems not to understand conditionals

2007-07-18 Thread Carlo Florendo
David Rothenberger wrote: On 7/18/2007 9:03 PM, Carlo Florendo wrote: I've got (and attached) this simple Makefile that checks the build platform of a machine. Here's the cut-and-pasted content of the Makefile: PLATFORM=$(shell uname -s | cut -f 1 -d | cut -f 1 -d _); Try removing the

Re: [SOLVED] Re: cygwin's [g]make 3.81 seems not to understand conditionals

2007-07-18 Thread Carlo Florendo
Carlo Florendo wrote: David Rothenberger wrote: On 7/18/2007 9:03 PM, Carlo Florendo wrote: I've got (and attached) this simple Makefile that checks the build platform of a machine. Here's the cut-and-pasted content of the Makefile: PLATFORM=$(shell uname -s | cut -f 1 -d | cut -f 1 -d