delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/13/06:13:21

Date: Sun, 13 Jun 1999 11:36:35 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: "Campbell, Rolf [SKY:1V45:EXCH]" <cp1v45 AT americasm01 DOT nt DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: "#" in makefile variable
In-Reply-To: <376148D1.689CB9E6@americasm01.nt.com>
Message-ID: <Pine.SUN.3.91.990613113609.17906W-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Fri, 11 Jun 1999, Campbell, Rolf [SKY:1V45:EXCH] wrote:

> Does anyone know how I can get "#" in makefile variable?

The usual way to solve such problems with Make is to define a variable
whose value is "#", like this:

hash=#

and then use it like this:

TST=-W -Wall -DINTERFACE=$(hash)define

- Raw text -


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