ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/04/30/11:45:51

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
From: bstark AT protechpts DOT com (Bob Stark)
Newsgroups: comp.os.msdos.djgpp
Subject: How do you pass double quotes to a program via gnu make?
Date: 30 Apr 2002 08:38:21 -0700
Organization: http://groups.google.com/
Lines: 26
Message-ID: <e83e1008.0204300738.77899e56@posting.google.com>
X-Trace: posting.google.com 1020181101 8075 (30 Apr 2002 15:38:21 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: 30 Apr 2002 15:38:21 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I am setting up gnu make to publish some files on Windows NT.  One of
the commands that I run needs to be passed a parameter in the form:
  -printer="Acrobat Distiller"

This works fine with GNU Make version 3.76.1

However, with the more recent GNU Make version 3.79.1, the double
quotes are stripped off before they are passed to the executable.

I tried endless variations of single, double, and triple quotes, along
with backslash characters to escape the single quotes, but to no
avail.  Reading the HTML doc and scanning this group didn't help much
either - this is definitlely an issue that people are struggling with,
but I'm not seeing the work-around.

Since others will be running these make files, requiring a switch away
from CMD.EXE won't really work, so I'll need to cook up a fix within
the Makefile.

Rather than post the entire make file, here's a line from it, and what
it generates into in a typical run:

 printppt -PRINTER="Acrobat Distiller" -WHAT=NOTES -FILES=${<}

 printppt -PRINTER="Acrobat Distiller" -WHAT=NOTES -FILES=Java.ppt

- Raw text -

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