Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 05 Oct 2015 18:53:23 -0700
From:      Rui Paulo <rpaulo@me.com>
To:        NGie Cooper <yaneurabeya@gmail.com>
Cc:        hackers@freebsd.org
Subject:   Re: boostrap target
Message-ID:  <1444096403.6210.30.camel@me.com>
In-Reply-To: <4E5E6A74-F722-4F34-8B76-6A9DA653F0C5@gmail.com>
References:  <1444087075.6210.17.camel@me.com> <33379C03-977C-47B5-93AB-447715A9C215@gmail.com> <1444093706.6210.26.camel@me.com> <4E5E6A74-F722-4F34-8B76-6A9DA653F0C5@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 2015-10-05 at 18:21 -0700, NGie Cooper wrote:
> > On Oct 5, 2015, at 18:08, Rui Paulo <rpaulo@me.com> wrote:
> > 
> > On Mon, 2015-10-05 at 17:40 -0700, NGie Cooper wrote:
> > > > On Oct 5, 2015, at 16:17, Rui Paulo <rpaulo@me.com> wrote:
> > > > 
> > > > 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.
> > 
> > That doesn't answer my question because I still don't know how it
> > gets
> > added to afterdepend.
> 
> `make afterdepend` doesn't do anything right now in that directory
> when with and without meta mode with my copy of FreeBSD:
> 
> $ uname -a
> FreeBSD fbsd11 11.0-CURRENT FreeBSD 11.0-CURRENT #2
> r287529+e3e7b86(isilon-atf): Mon Sep  7 00:12:58 PDT 2015     
> ngie@fbsd11:/usr/obj/usr/src/git/sys/GENERIC-NODEBUG  amd64
> $ grep Bootstrapping ~/bw.log || echo not found
> not found
> $ __MAKE_CONF=/dev/null SRCCONF=/dev/null make obj
> ===> lib (obj)
> /usr/obj/usr/src/svn/usr.bin/lex/lib created for
> /usr/src/svn/usr.bin/lex/lib
> [ngie@fbsd11 /usr/src/svn/usr.bin/lex]$ make depend
> yacc -d -o parse.c
> /usr/src/svn/usr.bin/lex/../../contrib/flex/parse.y
> lex -t  -is /usr/src/svn/usr.bin/lex/../../contrib/flex/scan.l >
> scan.c
> sed 's/m4_/m4postproc_/g; s/m4preproc_/m4_/g' 
>  /usr/src/svn/usr.bin/lex/../../contrib/flex/flex.skl |  m4 
> -I/usr/src/svn/usr.bin/lex/../../contrib/flex -P `awk -f
> /usr/src/svn/usr.bin/lex/version.awk
> /usr/src/svn/usr.bin/lex/config.h` |  sed 's/m4postproc_/m4_/g' |  sh
> /usr/src/svn/usr.bin/lex/../../contrib/flex/mkskel.sh > skel.c
> rm -f .depend
> mkdep -f .depend -a    -I. -I/usr/src/svn/usr.bin/lex 
> -I/usr/src/svn/usr.bin/lex/../../contrib/flex -DHAVE_CONFIG_H 
> -std=gnu99   /usr/src/svn/usr.bin/lex/../../contrib/flex/buf.c
> /usr/src/svn/usr.bin/lex/../../contrib/flex/ccl.c
> /usr/src/svn/usr.bin/lex/../../contrib/flex/dfa.c
> /usr/src/svn/usr.bin/lex/../../contrib/flex/ecs.c
> /usr/src/svn/usr.bin/lex/../../contrib/flex/filter.c
> /usr/src/svn/usr.bin/lex/../../contrib/flex/gen.c
> /usr/src/svn/usr.bin/lex/../../contrib/flex/main.c
> /usr/src/svn/usr.bin/lex/../../contrib/flex/misc.c
> /usr/src/svn/usr.bin/lex/../../contrib/flex/nfa.c
> /usr/src/svn/usr.bin/lex/../../contrib/flex/options.c parse.c
> /usr/src/svn/usr.bin/lex/../../contrib/flex/regex.c scan.c
> /usr/src/svn/usr.bin/lex/../../contrib/flex/scanflags.c
> /usr/src/svn/usr.bin/lex/../../contrib/flex/scanopt.c skel.c
> /usr/src/svn/usr.bin/lex/../../contrib/flex/sym.c
> /usr/src/svn/usr.bin/lex/../../contrib/flex/tables.c
> /usr/src/svn/usr.bin/lex/../../contrib/flex/tables_shared.c
> /usr/src/svn/
>  usr.bin/lex/../../contrib/flex/tblcmp.c
> /usr/src/svn/usr.bin/lex/../../contrib/flex/yylex.c
> echo lex: /usr/lib/libc.a  >> .depend
> ===> lib (depend)
> rm -f .depend
> mkdep -f .depend -a     -std=gnu99  
>  /usr/src/svn/usr.bin/lex/lib/../../../contrib/flex/libmain.c
> /usr/src/svn/usr.bin/lex/lib/../../../contrib/flex/libyywrap.c
> $ __MAKE_CONF=/dev/null SRCCONF=/dev/null make afterdepend

Hmm, ok, I confused the output because boostrap depends on skel.c.  It
turns out that only the target skel.c is run...

-- 
Rui Paulo




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