From owner-freebsd-hackers@freebsd.org Tue Oct 6 00:40:39 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 65C7A9B6149 for ; Tue, 6 Oct 2015 00:40:39 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 460C26C7 for ; Tue, 6 Oct 2015 00:40:39 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 454739B6148; Tue, 6 Oct 2015 00:40:39 +0000 (UTC) Delivered-To: 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 2B0779B6147 for ; Tue, 6 Oct 2015 00:40:39 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mail-pa0-x22d.google.com (mail-pa0-x22d.google.com [IPv6:2607:f8b0:400e:c03::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F30E86C6 for ; Tue, 6 Oct 2015 00:40:38 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by padhy16 with SMTP id hy16so51446042pad.1 for ; Mon, 05 Oct 2015 17:40:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=lPB6t7zZAwRQyQDRbJqsYHsL7lB7wLp0UnRI0fYoaNI=; b=TW67Ka2JKNbXoEyeAOnkx7+WDu8FnHZGfX9zBCVCRkdjxqvNZeWUisETWAeYvHcwK0 AfcKACW9XiRyQeTeBb9CJQ6RJpODH4TtMD4iNPQj9e59T1NfA7PPzyLknQAunIVjaL0g 272KHi5G9PnHB6AxLVQ+7B2idcFOT/HR0eHoLb2aDfR6xBV9PbJAoNT7h7BoAaGku8PC /zBBXGtEaTBSmNrYRx9xfc41EXO9LMLMBu2zZtcLjDBjM3InOCOt8wjgrtxv4SoRvjkr zjBJMhTIrlq4QCxzHp6eeKX0mspN+XIin0RNewUgF1B91Shebf28syNvmfYSasCWMiKl Hcfw== X-Received: by 10.66.236.129 with SMTP id uu1mr43267972pac.34.1444092038520; Mon, 05 Oct 2015 17:40:38 -0700 (PDT) Received: from ?IPv6:2601:601:800:126d:610a:70fc:5f44:1c7f? ([2601:601:800:126d:610a:70fc:5f44:1c7f]) by smtp.gmail.com with ESMTPSA id rk2sm29782301pbc.75.2015.10.05.17.40.37 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 05 Oct 2015 17:40:37 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: boostrap target From: NGie Cooper In-Reply-To: <1444087075.6210.17.camel@me.com> Date: Mon, 5 Oct 2015 17:40:36 -0700 Cc: hackers@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <33379C03-977C-47B5-93AB-447715A9C215@gmail.com> References: <1444087075.6210.17.camel@me.com> To: Rui Paulo X-Mailer: Apple Mail (2.2104) 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: Tue, 06 Oct 2015 00:40:39 -0000 > On Oct 5, 2015, at 16:17, Rui Paulo wrote: >=20 > Ian and I were trying to figure out how the boostrap target gets = called > in usr.bin/lex/Makefile. It seems to be part of afterdepend, but I > couldn't figure out how it gets added. Any ideas? Looking at ^/head/Makefile@r35703, `make bootstrap` for = usr.bin/lex/Makefile@r35703 was broken when bootstrap-tools, etc, was = written. Here=E2=80=99s the revision where it was brought in: ------------------------------------------------------------------------ r16519 | nate | 1996-06-19 13:48:06 -0700 (Wed, 19 Jun 1996) | 6 lines Finish the import and merge in FreeBSD specific changes. Add a 'bootstrap' target which *must* be run before building the new version, since the new scanner relies on the current version of flex to build itself otherwise. Here=E2=80=99s what ^/head/Makefile@r35703 used to look like: 33133 adam .if !defined(NOTOOLS) 17308 peter @echo 17308 peter @echo = "--------------------------------------------------------------" 27910 asami @echo " Rebuilding bootstrap tools" 17308 peter @echo = "--------------------------------------------------------------" 27910 asami cd ${.CURDIR} && ${BMAKE} bootstrap ... 17308 peter bootstrap: 27910 asami .if defined(DESTDIR) 27910 asami rm -f ${DESTDIR}/usr/src/sys 27910 asami ln -s ${.CURDIR}/sys ${DESTDIR}/usr/src 27910 asami cd ${.CURDIR}/include && find -dx . | cpio -dump = ${DESTDIR}/usr/include 34575 bde cd ${.CURDIR}/include && ${MAKE} symlinks 27910 asami .endif 35479 bde cd ${.CURDIR}/usr.bin/make && ${MAKE} = ${MK_FLAGS} ${_DEPEND} && \ 30113 jkh ${MAKE} ${MK_FLAGS} all && \ 30113 jkh ${MAKE} ${MK_FLAGS} -B install = ${CLEANDIR} ${OBJDIR} 35479 bde cd ${.CURDIR}/usr.bin/xinstall && ${MAKE} = ${MK_FLAGS} ${_DEPEND} && \ 30113 jkh ${MAKE} ${MK_FLAGS} all && \ 30113 jkh ${MAKE} ${MK_FLAGS} -B install = ${CLEANDIR} ${OBJDIR} 34509 bde cd ${.CURDIR}/usr.bin/lex && ${MAKE} bootstrap = && \ 35479 bde ${MAKE} ${MK_FLAGS} ${_DEPEND} && \ 30170 jkh ${MAKE} ${MK_FLAGS} -DNOLIB all && \ 30113 jkh ${MAKE} ${MK_FLAGS} -DNOLIB -B install = ${CLEANDIR}=