From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:6f8:1178:2:5054:ff:fec0:8e10] ident=Debian-exim) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1Wz4Ak-0006WI-EM for ptxdist@pengutronix.de; Mon, 23 Jun 2014 15:20:34 +0200 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.80) (envelope-from ) id 1Wz4Ak-0004Pp-Cq for ptxdist@pengutronix.de; Mon, 23 Jun 2014 15:20:34 +0200 Date: Mon, 23 Jun 2014 15:20:34 +0200 From: Michael Olbrich Message-ID: <20140623132034.GG16937@pengutronix.de> References: <20140620133721.GB16625@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Subject: Re: [ptxdist] how to escape $ in a rule ? Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de On Mon, Jun 23, 2014 at 01:46:56PM +0200, marc doz wrote: > regularFile -> regularFile > foo$1.bar -> foo.bar > foo\$1.bar -> foo\.bar > foo$$1.bar -> foo.bar > foo\$\$1.bar -> foo\.bar > foo$\$1 ->foo.bar > 'foo$1.bar' -> foo.bar > 'foo\$1.bar' -> foo.bar > 'foo$$1.bar' -> foo.bar > 'foo\$\$1.bar' -> foo.bar > 'foo$\$1.bar' -> foo.bar You need $$ for make and quotes (') for the shell: @$(call install_copy, foo, 0, 0, 0755, '$(FOO_DIR)/AAA/foo$$1.bar' , '/AAA/foo$$1.bar') For newer ptxdist versions you probably need to remove the quotes. Michael -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- ptxdist mailing list ptxdist@pengutronix.de