delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1992/09/21/16:43:12

Date: Mon, 21 Sep 1992 14:35:43 +22313801 (EDT
From: Joey Gibson <aix3!wjg AT netcom DOT com>
Subject: help with macro definition
To: DJGPP Mailing List <netcomsv!djgpp AT sun DOT soe DOT clarkson DOT edu>

In a makefile, I have the following macros:
LATEX="tex &lplain"
DVIPS="dvips test"

Later on, I am trying to compile a file, including these macros as macros in the
code:

all : test.c
	cc -DBOB=$(LATEX) -DFRED=$(DVIPS) test.c -o test.o

What happens is that the macros only get the first word of the definition, i.e. FRED
is dfined as "dvips" and BOB is defined as "tex". I have tried every conceivable way
of quoting these definitions, but can't get it right. Could someone please tell
me the proper way to quote macro definitions so that the C program gets the
full definition?

Joey Gibson 

=> "In the country of the blind, the one-eyed man is king." H.G. Wells <=
   ===> The views expressed here are not necessarily those of EMA. <==


- Raw text -


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