From owner-freebsd-hackers@freebsd.org Mon Nov 30 12:09:59 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 97003A3CDC0 for ; Mon, 30 Nov 2015 12:09:59 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from zxy.spb.ru (zxy.spb.ru [195.70.199.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5446219CE for ; Mon, 30 Nov 2015 12:09:59 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from slw by zxy.spb.ru with local (Exim 4.86 (FreeBSD)) (envelope-from ) id 1a3NHB-000NqT-Bs; Mon, 30 Nov 2015 15:09:49 +0300 Date: Mon, 30 Nov 2015 15:09:49 +0300 From: Slawa Olhovchenkov To: Alexnader Kuleshov Cc: freebsd-hackers@freebsd.org Subject: Re: Build only changes Message-ID: <20151130120949.GZ31314@zxy.spb.ru> References: <20151130113712.GA10550@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20151130113712.GA10550@localhost> User-Agent: Mutt/1.5.24 (2015-08-30) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: slw@zxy.spb.ru X-SA-Exim-Scanned: No (on zxy.spb.ru); SAEximRunCond expanded to false X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Nov 2015 12:09:59 -0000 On Mon, Nov 30, 2015 at 05:37:12PM +0600, Alexnader Kuleshov wrote: > Hello All, > > I'm new in FreeBSD, so my question can be stupid, but I have just executed > `make buildworld` and it was successful. Now I want to do some little changes > for example in one of `usr.sbin` application. How can I recompile only changed > application? If I'm executing `make buildworld` again, I see that there is > new long-long-time compilation of the full base. > > I've started to look into the base's Makefiles and tried to execute: > > make buildworld -j4 -DMK_CDDL=no -DMK_KERBEROS=no -DMK_RESCUE=no -DMK_CRYPT=no > -DMK_TEST=no -DNO_CLEAN=yes -DMK_CLANG_BOOTSTRAP=no -DMK_CLANG=no > > but anyway I see that contrib/llvm/tools/clang/* is compiling. > > Is there ability to compile only one separate dir in the FreeBSD base? May be `make buildworld -DNO_CLEAN` is enough? For some dirs I am do direct build. For other this is not work.