Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Sep 2011 10:03:08 +0000
From:      h h <aakuusta@gmail.com>
To:        rank1seeker@gmail.com
Cc:        hackers@freebsd.org
Subject:   Re: /usr/src -> make doesn't recognize target when '-f -' is used
Message-ID:  <86mxdq2tgj.fsf@gmail.com>
In-Reply-To: <20110927.093117.140.1@DEV> (rank1seeker@gmail.com's message of "Tue, 27 Sep 2011 11:31:17 %2B0200")
References:  <20110927.093117.140.1@DEV>

next in thread | previous in thread | raw e-mail | index | archive | help
rank1seeker@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. Try using a variable not provided from stdin

  $ echo 'FOO=bar' | __MAKE_CONF= make -f - -V FOO -V TGTS
  bar
  

  $ echo 'FOO=bar' | __MAKE_CONF=/dev/stdin make -V FOO -V TGTS
  bar
  all all-man buildenv ...

  $ (echo 'FOO=bar'; echo '.include "Makefile"') | __MAKE_CONF= make -f -V FOO -V TGTS
  bar
  all all-man buildenv ...

According to make(1) manpage, it reads BSDmakefile, makefile or Makefile
unless -f is specified.



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