From owner-cvs-src@FreeBSD.ORG Fri May 6 18:30:06 2005 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7908216A4D4; Fri, 6 May 2005 18:30:06 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 677BF43D83; Fri, 6 May 2005 18:30:06 +0000 (GMT) (envelope-from harti@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j46IU61U087270; Fri, 6 May 2005 18:30:06 GMT (envelope-from harti@repoman.freebsd.org) Received: (from harti@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j46IU6vk087269; Fri, 6 May 2005 18:30:06 GMT (envelope-from harti) Message-Id: <200505061830.j46IU6vk087269@repoman.freebsd.org> From: Hartmut Brandt Date: Fri, 6 May 2005 18:30:06 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/usr.bin/make hash_tables.c main.c parse.c var.c var.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 May 2005 18:30:06 -0000 harti 2005-05-06 18:30:06 UTC FreeBSD src repository Modified files: usr.bin/make hash_tables.c main.c parse.c var.c var.h Log: Introduce a new pseudo-target .EXPORTVAR which allows to put a make macro into the environment of programs executed by make. This has approximately the same function as gmake's export directive. The form of a pseudo target was deliberately choosen to minimize work for POSIX compatibility (Makefiles are not allowed to use any targets starting with a dot and consisting only of uppercase letters except those specified in the standard when they want POSIX compatible behaviour, so such a Makefile can never contain .EXPORTVAR.) Change the handling of macros coming from the environment: instead of asking the environment for each variable we could not find otherwise put all the environment variables in a special variable environment just at start up. This has been tested on the ports cluster by kris. Submitted by: Max Okumoto Revision Changes Path 1.2 +25 -24 src/usr.bin/make/hash_tables.c 1.136 +4 -1 src/usr.bin/make/main.c 1.101 +5 -1 src/usr.bin/make/parse.c 1.145 +81 -65 src/usr.bin/make/var.c 1.17 +4 -3 src/usr.bin/make/var.h