Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <50A89B19AEAAD411B9D200A0C9FB5699E88ED3@craius.cportcorp.com> From: Peter Buckley To: "'Karr, David'" , "'cygwin AT cygwin DOT com'" Subject: RE: Makefile that runs w.o. changes on Cygwin & Linux: how to do "rm -f $(TARGET)"? Date: Thu, 6 Sep 2001 16:41:15 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" We use ifdefs- messy but effective. They get put in a low level include file, so they work for the multiple makefiles that reference target. ifdef $(CYGWIN) TARGET = thing.exe else TARGET = thing endif HTH, Peter -----Original Message----- From: Karr, David [mailto:david DOT karr AT cacheflow DOT com] Sent: Thursday, September 06, 2001 4:38 PM To: 'cygwin AT cygwin DOT 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/ -- 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/