From owner-freebsd-questions@FreeBSD.ORG Thu Oct 17 16:43:36 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 5CFDA497 for ; Thu, 17 Oct 2013 16:43:36 +0000 (UTC) (envelope-from kuuse.redantigua@gmail.com) Received: from mail-lb0-x22e.google.com (mail-lb0-x22e.google.com [IPv6:2a00:1450:4010:c04::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id DE2EB2FCA for ; Thu, 17 Oct 2013 16:43:35 +0000 (UTC) Received: by mail-lb0-f174.google.com with SMTP id w6so2120079lbh.19 for ; Thu, 17 Oct 2013 09:43:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=gtOuIwY27k95B1bP/SNlQnyDVtqsMUPFxzwrjuRx2ds=; b=iYv5tEKcpRlg6PW0T9Ea0ZF8dCGspZCUtHirqMZ3+bsvZAev0Pek4ZsPzaxQGGmfMn lPPda8la16a+dxoq5sxV77K74tVfY6ioYAXfpJbcuLM2fJZzlB82clJe+ufDdfRyH8yO YIBPXLVbpv02ChiLMkImfpPzlF3lwbenRXpgRGFVBQfIIBURtgtl+XMrKLoeKl0Fte5X NABcb8CvKk7/OOhvgekg5LD2+EVW3oH2I0Q8KBFkJlM7dcv9nPmhpRmzgbEalVhbVuiB YHvHm+Pd6BKRaHrMFc+DIEAqdDSsgDg/TR92OZoAT6Q6npKxOuiCMP52AJKmX2SruXGp sCrQ== MIME-Version: 1.0 X-Received: by 10.152.121.3 with SMTP id lg3mr8016597lab.0.1382028213736; Thu, 17 Oct 2013 09:43:33 -0700 (PDT) Sender: kuuse.redantigua@gmail.com Received: by 10.114.201.101 with HTTP; Thu, 17 Oct 2013 09:43:33 -0700 (PDT) Date: Thu, 17 Oct 2013 18:43:33 +0200 X-Google-Sender-Auth: 21DzWmkz5aHedL1jMXKzldTwVcU Message-ID: Subject: FreeBSD Make question From: Johan Kuuse To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Oct 2013 16:43:36 -0000 Hi, I'm trying to write a Makefile for FreeBSD Make (not GNU Make), with target names containg spaces. Example: MY_TARGET=/home/joe/directory name with spaces/hello.c ${MY_TARGET}: @echo ${.TARGET} The output is truncated to '/home/joe/directory' Is there any possible way to escape this properly? I have read all the documentation I could find, and tried several ways solving this problem, using quotes, escapes, substitutions. The output is the same if as use sh, bash, or tcsh, so it isn't shell related. Are spaces simply not possible to use in target names? If I'm on the wrong list, or someone could point me into any direction to solve this, I would gladly appreciate any hints. Best Regards, Johan