On 27 September 2011 17:23, <rank1see...@gmail.com> wrote: > ----- Original Message ----- > From: Chris Rees <utis...@gmail.com> > To: rank1see...@gmail.com > Cc: h h <aakuu...@gmail.com>, hack...@freebsd.org > Date: Tue, 27 Sep 2011 17:16:57 +0100 > Subject: Re: /usr/src -> make doesn't recognize target when '-f -' is used > >> On 27 Sep 2011 12:24, <rank1see...@gmail.com> wrote: >> > >> > ----- Original Message ----- >> > From: h h <aakuu...@gmail.com> >> > To: rank1see...@gmail.com >> > Cc: hack...@freebsd.org >> > Date: Tue, 27 Sep 2011 10:03:08 +0000 >> > Subject: Re: /usr/src -> make doesn't recognize target when '-f -' is > used >> > >> > > rank1see...@gmail.com writes: >> > > >> > > > cd /usr/src >> > > > >> > > > This works: >> > > > -- >> > > > # echo 'CPUTYPE?=core2 >> > > > CFLAGS+=-march=native >> > > > NO_CPU_CFLAGS=yes >> > > > COPTFLAGS+=-march=native >> > > > NO_CPU_COPTFLAGS=yes' | /usr/bin/make __MAKE_CONF=/dev/null -f - -V >> > CPUTYPE >> > > > -- >> > > [...] >> > > >> > > No, it doesn't. >> > > >> > > According to make(1) manpage, it reads BSDmakefile, makefile or > Makefile >> > > unless -f is specified. >> > >> > Well, via STDIN, I've attempted to feed it, with syntaks from a >> 'make.conf' >> > file, so I wouldn't have to provide file, via __MAKE_CONF. >> > Looking again in man pages, I see that -f flag relates to Makefile > syntaks >> > and NOT to the make.conf. >> > >> >> Yes, it means that make reads the Makefile from stdin instead of from the >> Makefile; if you use -f then the Makefile isn't read -- the make.conf has >> nothing to do with -f. >> >> What have you misunderstood? As far as I can see, you're contradicting >> yourself. >> >> Chris > > > The point is, that I've gave answer to myself. > I figured it out, a little bit later ..., so it is solved now. > Thank you all.
Great to hear it's solved, and thanks for letting us know. Makefiles can be confusing territory at times. Chris _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"