From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 30 17:01:27 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 14994106566C for ; Wed, 30 Jun 2010 17:01:27 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id C96EC8FC23 for ; Wed, 30 Jun 2010 17:01:26 +0000 (UTC) Received: by gxk7 with SMTP id 7so694563gxk.13 for ; Wed, 30 Jun 2010 10:01:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=B7k33WTLstFl+5yrkWpQU0RnFPmOO5jP12l273zoSpI=; b=AVCYrjG5fXMipn+0r0ZAoB7B/2ibA6+vjrdWFPqnSeyFLaAof94gyREJZwqKDwCmrA 7Jzln42B7MjvyWfXzG+KO8617GYo4r5hm+U2ri9yIqBfgbFT/zx797VkCMGvcsniREzz b+7J4GGb1npCnpK4oqI0mEdPi41QUSo1InrCU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=Twly8b9s1dgKSr2HOK2o7Cmm67UdnM95s8aR7q+46B8IXx1qoZx9GN0BdI46V5B8NT G4YN1Pxsr8W+SBFf5FTeO82u7mCT6ba144PPWh7OLeSlOm8kf+SXavxmyvGfPUcXr73m psnFAifEy14usdOi118fsohhMU9Lhz6gXbjp0= MIME-Version: 1.0 Received: by 10.229.245.68 with SMTP id lt4mr5208499qcb.71.1277917282007; Wed, 30 Jun 2010 10:01:22 -0700 (PDT) Received: by 10.229.221.83 with HTTP; Wed, 30 Jun 2010 10:01:21 -0700 (PDT) Date: Wed, 30 Jun 2010 10:01:21 -0700 Message-ID: From: Garrett Cooper To: FreeBSD-Hackers Content-Type: text/plain; charset=ISO-8859-1 Subject: Non-POSIX compliant pmake with secondary expansion? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jun 2010 17:01:27 -0000 Hi guys, I currently set: .POSIX= In a Makefile thinking that it would enable only POSIX functionality, and was fidgeting around with the Makefile trying to get it to work. In short, I used secondary expansion, it worked, then compared the output from gmake and it failed (because they have the .SECONDEXPANSION keyword). POSIX doesn't mention secondary expansion, so obviously it's not a POSIX feature. So I was wondering if secondary expansion is enabled by default with .POSIX instead of being disabled like it should on pmake? Thanks, -Garrett $ cat test_Makefile .POSIX= TARGETS= all: $$(TARGETS) TARGETS+= idontexist idontexist: @echo $@ $ make -f test_Makefile all idontexist $ gmake -f test_Makefile gmake: *** No rule to make target `$(TARGETS)', needed by `all'. Stop. $ uname -a FreeBSD bayonetta.local 9.0-CURRENT FreeBSD 9.0-CURRENT #0 r206173M: Mon Apr 26 22:45:06 PDT 2010 root@bayonetta.local:/usr/obj/usr/src/sys/BAYONETTA.ata amd64