This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: OSTYPE missing
Bruce Eckel wrote:
> I just updated to the latest Cygwin version, and suddenly the
> following lines in my makefile (which worked previously) are
> failing:
>
> ifneq ($(OSTYPE),cygwin)
> $(error Must be run under Cygwin, ostype is $(OSTYPE))
> endif
>
> $(OSTYPE) is only producing '.'
I had the same problem (and question):
http://www.cygwin.com/ml/cygwin/2001-11/msg01039.html
My workaround:
OSTYPE := $(findstring CYGWIN, $(shell uname))
HTH,
Daniel.
--
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/