Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

In Nature there are neither rewards nor punishments, there are consequences. -- R. G. Ingersoll


devel / comp.os.msdos.djgpp / Re: Obscure (?) Makefile syntax

SubjectAuthor
* Obscure (?) Makefile syntaxRobert Riebisch
+- Re: Obscure (?) Makefile syntaxRobert Riebisch
`- Re: Obscure (?) Makefile syntaxRobert Riebisch

1
Obscure (?) Makefile syntax

<t0ld21$jbe$1@dont-email.me>

 copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=156&group=comp.os.msdos.djgpp#156

 copy link   Newsgroups: comp.os.msdos.djgpp
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: Robert.Riebisch@arcor.de (Robert Riebisch)
Newsgroups: comp.os.msdos.djgpp
Subject: Obscure (?) Makefile syntax
Date: Sun, 13 Mar 2022 19:27:10 +0100
Organization: none
Lines: 22
Message-ID: <t0ld21$jbe$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 13 Mar 2022 18:27:13 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="1018bd579fc72e6db1d6ecac86d6b0f9";
logging-data="19822"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18AkGMStmmdXKqcJM4wUS1V"
Cancel-Lock: sha1:l6Ok5P6mTfsRoe+A5J8wdsjJZlo=
 by: Robert Riebisch - Sun, 13 Mar 2022 18:27 UTC

Hi all,

let's go a "few" years back in time... into 2002. *g*

In a Makefile I found this line:
copy /B $(DJGPP:\DJGPP.ENV=)\bin\pmodstub.exe+a foo.exe

This fails with 'Path not found' on my Windows XP system, because it
resolves to:
copy /B c:\djgpp\djgpp.env\bin\pmodstub.exe+a foo.exe

That 'djgpp.env\' is the culprit.

I mean, it's clear, what this line is intended to do, but I've never
seen this line before.

Why does it not work on my system?
How to make it work? Do I need the change some setting on my system?
(Yes, I already know how to work around, but I'm curious.)

--
Robert Riebisch

Re: Obscure (?) Makefile syntax

<t0ld6g$jbe$2@dont-email.me>

 copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=157&group=comp.os.msdos.djgpp#157

 copy link   Newsgroups: comp.os.msdos.djgpp
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: Robert.Riebisch@arcor.de (Robert Riebisch)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Obscure (?) Makefile syntax
Date: Sun, 13 Mar 2022 19:29:36 +0100
Organization: none
Lines: 15
Message-ID: <t0ld6g$jbe$2@dont-email.me>
References: <t0ld21$jbe$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 13 Mar 2022 18:29:36 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="1018bd579fc72e6db1d6ecac86d6b0f9";
logging-data="19822"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/0CblxsjiFZ7w/9Ll66hJF"
Cancel-Lock: sha1:TC/4f/JS1EfbBUBAMejVeVvJ37E=
In-Reply-To: <t0ld21$jbe$1@dont-email.me>
 by: Robert Riebisch - Sun, 13 Mar 2022 18:29 UTC

Robert Riebisch wrote:

> In a Makefile I found this line:
> copy /B $(DJGPP:\DJGPP.ENV=)\bin\pmodstub.exe+a foo.exe
>
> This fails with 'Path not found' on my Windows XP system, because it
> resolves to:
> copy /B c:\djgpp\djgpp.env\bin\pmodstub.exe+a foo.exe
>
> That 'djgpp.env\' is the culprit.

I forgot: My system has DJGPP=c:\DJGPP\djgpp.env

--
Robert Riebisch

Re: Obscure (?) Makefile syntax

<t0lfie$56p$1@dont-email.me>

 copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=158&group=comp.os.msdos.djgpp#158

 copy link   Newsgroups: comp.os.msdos.djgpp
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: Robert.Riebisch@arcor.de (Robert Riebisch)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Obscure (?) Makefile syntax
Date: Sun, 13 Mar 2022 20:10:05 +0100
Organization: none
Lines: 27
Message-ID: <t0lfie$56p$1@dont-email.me>
References: <t0ld21$jbe$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 13 Mar 2022 19:10:06 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="1018bd579fc72e6db1d6ecac86d6b0f9";
logging-data="5337"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Iwqeu7dPFDk+IaR50uYHM"
Cancel-Lock: sha1:XX6ms2g1x4/wfzz1Z9s/IoT7jCk=
In-Reply-To: <t0ld21$jbe$1@dont-email.me>
 by: Robert Riebisch - Sun, 13 Mar 2022 19:10 UTC

Robert Riebisch wrote:

> In a Makefile I found this line:
> copy /B $(DJGPP:\DJGPP.ENV=)\bin\pmodstub.exe+a foo.exe
>
> This fails with 'Path not found' on my Windows XP system, because it
> resolves to:
> copy /B c:\djgpp\djgpp.env\bin\pmodstub.exe+a foo.exe
>
> That 'djgpp.env\' is the culprit.
>
> I mean, it's clear, what this line is intended to do, but I've never
> seen this line before.
>
> Why does it not work on my system?
> How to make it work? Do I need the change some setting on my system?
> (Yes, I already know how to work around, but I'm curious.)

C. Masloch ("ecm") pointed me to
<https://www.gnu.org/software/make/manual/html_node/Substitution-Refs.html#Substitution-Refs>.

Of course, this works case-sensitive.

When I call 'make DJGPP=C:\DJGPP\DJGPP.ENV' it works fine. :-)

--
Robert Riebisch

1
server_pubkey.txt

rocksolid light 0.9.7
clearnet tor