Mail Archives: djgpp/1997/04/24/17:00:34
Matthew H. Gerlach wrote:
>
> 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
Here are the fragments, which I'm using for RHIDE:
ifneq ($(strip $(DJDIR)),)
export rhide_OS:=DJGPP
endif
ifeq ($(strip $(rhide_OS)),)
export rhide_OS:=$(shell uname)
endif
ifeq ($(rhide_OS),Linux)
... Do some Linux stuff
endif
ifeq ($(rhide_OS),DJGPP)
... Do some DJGPP stuff
endif
Robert
--
*****************************************************************
* Robert Hoehne, Fakultaet fuer Mathematik, TU-Chemnitz-Zwickau *
* Post: Am Berg 3, D-09573 Dittmannsdorf *
* e-Mail: Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE *
* WWW: http://www.tu-chemnitz.de/~rho *
*****************************************************************
- Raw text -