/usr/src -> make doesn't recognize target when '-f -' is used
h h
aakuusta at gmail.com
Tue Sep 27 10:34:06 UTC 2011
rank1seeker at 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.
More information about the freebsd-hackers
mailing list