From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 5 19:34:35 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 0FD35106566C for ; Mon, 5 Jul 2010 19:34:35 +0000 (UTC) (envelope-from Hartmut.Brandt@dlr.de) Received: from smtp1.dlr.de (smtp1.dlr.de [129.247.252.32]) by mx1.freebsd.org (Postfix) with ESMTP id 8E3648FC17 for ; Mon, 5 Jul 2010 19:34:33 +0000 (UTC) Received: from knopdnsimu13l.kn.op.dlr.de ([129.247.178.118]) by smtp1.dlr.de over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Mon, 5 Jul 2010 21:34:32 +0200 Date: Mon, 5 Jul 2010 21:32:35 +0200 (CEST) From: Harti Brandt X-X-Sender: brandt_h@knopdnsimu13l.kn.op.dlr.de To: Garrett Cooper In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) X-OpenPGP-Key: harti@freebsd.org MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-OriginalArrivalTime: 05 Jul 2010 19:34:32.0118 (UTC) FILETIME=[17819560:01CB1C79] Cc: FreeBSD-Hackers Subject: Re: Non-POSIX compliant pmake with secondary expansion? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Harti Brandt List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jul 2010 19:34:35 -0000 Hi Garret, On Wed, 30 Jun 2010, Garrett Cooper wrote: GC> I currently set: GC> GC>.POSIX= I think this should be actually a target (the first one in the Makefile): .POSIX: GC> GC> In a Makefile thinking that it would enable only POSIX GC>functionality, and was fidgeting around with the Makefile trying to GC>get it to work. In short, I used secondary expansion, it worked, then GC>compared the output from gmake and it failed (because they have the GC>.SECONDEXPANSION keyword). POSIX doesn't mention secondary expansion, GC>so obviously it's not a POSIX feature. GC> So I was wondering if secondary expansion is enabled by default GC>with .POSIX instead of being disabled like it should on pmake? I remember that .POSIX does almost nothing (it switches of auto-makefile-dependency processing, set the %POSIX variable and disables banners for parallel makes). This is because of the way processing works in our make. I had Posix-compatibility of make on my list for some time but dropped it. This would require large rewrites of the code. Even the parser would need to be different because there are subtle differences. harti GC>Thanks, GC>-Garrett GC> GC>$ cat test_Makefile GC>.POSIX= GC> GC>TARGETS= GC> GC>all: $$(TARGETS) GC> GC>TARGETS+= idontexist GC> GC>idontexist: GC> @echo $@ GC>$ make -f test_Makefile all GC>idontexist GC>$ gmake -f test_Makefile GC>gmake: *** No rule to make target `$(TARGETS)', needed by `all'. Stop. GC>$ uname -a GC>FreeBSD bayonetta.local 9.0-CURRENT FreeBSD 9.0-CURRENT #0 r206173M: GC>Mon Apr 26 22:45:06 PDT 2010 GC>root@bayonetta.local:/usr/obj/usr/src/sys/BAYONETTA.ata amd64 GC>_______________________________________________ GC>freebsd-hackers@freebsd.org mailing list GC>http://lists.freebsd.org/mailman/listinfo/freebsd-hackers GC>To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" GC> GC>