Mail Archives: djgpp/1997/04/24/07:46:32
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
- Raw text -