Makefile Frage

Lothar Behrens <[email protected]>
Newsgroups gmane.linux.suse.programming
Message-ID <[email protected]>
Hallo,

ich habe in meinem Makefile ein install-strip Target, was bestimmte 
Libraries kopieren soll, die in einem Programm gelinkt sind.
Wenn ich folgendes Kommando von Hand aufrufe, geht das. Wie muss ich 
das $3 und $4, sowie $1 escapen ?

Ein \ davor setzen geht nicht.

ldd ~/bin/wxWrapper | grep `wx-config --basename` | awk -v 
VERSION=`wx-config --version-full | awk 'BEGIN { FS="."; } { 
printf("%s.%s\n", $3, $4); }'` -v PREFIX=$(prefix) 'BEGIN { 
printf("#/bin/sh\n\n"); } { LIBRARY=$1; printf("cp `wx-config 
--prefix`/lib/%s %s/%s.%s\n", LIBRARY, PREFIX, LIBRARY, VERSION);}' | 
sh

Danke, Lothar

--
Lothar Behrens				|	Rapid Prototyping ...
Heinrich-Scheufelen-Platz 2		|	
73252 Lenningen  				|	www.lollisoft.de
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.