delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/25/05:45:06

Date: Mon, 25 Aug 1997 12:42:19 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Paul Derbyshire <ao950 AT FreeNet DOT Carleton DOT CA>
cc: djgpp AT delorie DOT com
Subject: Re: make.exe error messages
In-Reply-To: <5tbgkn$akv@freenet-news.carleton.ca>
Message-ID: <Pine.SUN.3.91.970825122619.3032G-100000@is>
MIME-Version: 1.0

On 19 Aug 1997, Paul Derbyshire wrote:

> then, users can use "make nocpp" to avoid trying to compile "setup" if
> they haven't installed, and don't want, c++.

If this is at all a problem, then the Makefile could just look for itself 
whether iostream.h (or whatever fails there) is installed, with a command 
like this:

 command.com /c if exist $(patsubst /,\\,${DJDIR})\lang\cxx\iostream.h ..

etc.  Put something instead of the dots, so it will make a difference.  
For example, you could invoke this command with the $(shell) function and 
let it say "echo YES" if the header exists, then test with `ifeq' that 
$(shell) returns YES.  If it doesn't, you could invoke "make nocpp" 
recursively.  Anyway, something along these lines.

I don't believe that telling users to type "make nocpp" will be a
solution, since they will have to read about that in order to know ;-)

(Note: the "command.com /c" thing is deliberate, so this works even if 
$(SHELL) points to Bash or some such.)

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019