Date: Thu, 24 Apr 1997 14:35:25 +0300 (IDT) From: Eli Zaretskii To: "Matthew H. Gerlach" cc: djgpp AT delorie DOT com Subject: Re: dos/unix defines In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Wed, 23 Apr 1997, Matthew H. Gerlach wrote: > I would like to similar stuff using GNU make, because I have makefiles used > on both UNIX and DJCPP make. In other words, I would like to something like > the following: > > ifeq (OS, UNIX) > RM=rm -f > else > rm=del > endif > > > Can someone please point me in the right direction to do this? There is no general way to do that. One solution which I find to work reasonably well is to test for COMSPEC, like so: ifdef COMSPEC ... DOS stuff ... else ... Unix stuff ... endif