Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Aug 1997 02:19:41 +0400
From:      Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
To:        Peter Wemm <peter@spinner.dialix.com.au>
Cc:        Bruce Evans <bde@zeta.org.au>, cvs-all@FreeBSD.ORG, cvs-committers@FreeBSD.ORG, cvs-user@FreeBSD.ORG
Subject:   Re: cvs commit: src Makefile 
Message-ID:  <199708192219.CAA00781@tejblum.dnttm.rssi.ru>
In-Reply-To: Your message of "Tue, 19 Aug 1997 18:45:38 %2B0800." <199708191045.SAA12115@spinner.dialix.com.au> 

next in thread | previous in thread | raw e-mail | index | archive | help
> 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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199708192219.CAA00781>