From owner-cvs-user Tue Aug 19 15:32:14 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id PAA10199 for cvs-user-outgoing; Tue, 19 Aug 1997 15:32:14 -0700 (PDT) Received: from helios.dnttm.ru (root@dnttm.wave.ras.ru [194.85.104.197]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id PAA10192; Tue, 19 Aug 1997 15:32:06 -0700 (PDT) Received: (from uucp@localhost) by helios.dnttm.ru (8.8.5/8.8.5/IP-3) with UUCP id CAA32552; Wed, 20 Aug 1997 02:25:48 +0400 Received: from tejblum.dnttm.rssi.ru (localhost [127.0.0.1]) by tejblum.dnttm.rssi.ru (8.8.7/8.8.5) with ESMTP id CAA00781; Wed, 20 Aug 1997 02:19:43 +0400 (MSD) Message-Id: <199708192219.CAA00781@tejblum.dnttm.rssi.ru> X-Mailer: exmh version 2.0gamma 1/27/96 To: Peter Wemm cc: Bruce Evans , cvs-all@FreeBSD.ORG, cvs-committers@FreeBSD.ORG, cvs-user@FreeBSD.ORG Subject: Re: cvs commit: src Makefile In-reply-to: Your message of "Tue, 19 Aug 1997 18:45:38 +0800." <199708191045.SAA12115@spinner.dialix.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 20 Aug 1997 02:19:41 +0400 From: Dmitrij Tejblum Sender: owner-cvs-user@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > Yes. 'make -DNOCLEAN world' works differently to 'make NOCLEAN=foo > world'. The -D version is not inherited while the second form is. Weird. My 'make' inherited them both. Here is small test example: dima@tejblum|/usr/home/dima/misc/mktest>cat Makefile world: make buildworld buildworld: .ifdef NOCLEAN @echo With NOCLEAN! .endif .ifndef NOCLEAN @echo Without NOCLEAN! .endif dima@tejblum|/usr/home/dima/misc/mktest>make world make buildworld Without NOCLEAN! dima@tejblum|/usr/home/dima/misc/mktest>make -DNOCLEAN world make buildworld With NOCLEAN! dima@tejblum|/usr/home/dima/misc/mktest>exit Dima