Mail Archives: djgpp/1997/11/24/08:35:24
From: | Christopher Croughton <crough45 AT amc DOT de>
|
Message-Id: | <97Nov24.143606gmt+0100.17026@internet01.amc.de>
|
Subject: | Substituting \ for / in make
|
To: | djgpp AT delorie DOT com
|
Date: | Mon, 24 Nov 1997 14:34:11 +0100
|
Mime-Version: | 1.0
|
I have a makefile which I want to use for both DOS
(with DJGPP) and Unix. There's a problem, though -
the 'install' rule needs to use COPY on DOS and cp
on Unix (because I can't guarantee that someone
compiling the DOS version will have installed the
DJGPP fileutils).
So I have a rule like:
install:
$(CP) *.exe $DJDIR/bin
and of course in the case when variable CP = COPY it
fails. What I tried was to use
$(DJDIR/bin:/=\\)
but any variant of that works only if there are spaces round
the slash.
I really don't want to have two makefiles...
Even worse, the environment variable DJDIR is set as C:/DJGPP.
I know there was some reason for using slash instead of backslash,
something wouldn't work, but I can't find any mention of this
variable in either the FAQ or in readme.1st. Is there a use for
this variable, possibly in other install scripts, or is it
a relic from some older installation (DJGPP version 1, possibly)?
Alternatively, is there a standard 'install' program in the DJGPP
distribution?
Chris C
- Raw text -