This is the mail archive of the cygwin@cygwin.com 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]

RE: Makefile that runs w.o. changes on Cygwin & Linux: how to do "rm -f $(TARGET)"?


MACH=`uname -s`
case "${MACH}" in
 CYGWIN*)
    EXE=".exe"
    ;;
 *)
    EXE=""
    ;;
esac

rm -f thing${EXE}

> -----Original Message-----
> From: Karr, David [mailto:david.karr@cacheflow.com]
> Sent: Thursday, September 06, 2001 4:38 PM
> To: 'cygwin@cygwin.com'
> Subject: Makefile that runs w.o. changes on Cygwin & Linux: how to do
> "rm -f $(TARGET)"?
> 
> 
> I have a little test application that I want to build and run 
> without change
> on Cygwin and Linux.  It almost works perfectly, except for 
> the "clean"
> target.  Is there any way to reference "thing" and have it 
> mean "thing" on
> Linux, but "thing.exe" on Cygwin?

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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]