Discussion:
Why would you use make show rather than make -V in ports?
(too old to reply)
Thomas Levine
2017-12-22 22:57:27 UTC
Permalink
The normal port Makefile includes this "show" target.

$ grep -A3 ^show: /usr/ports/infrastructure/mk/bsd.port.mk
show:
.for _s in ${show}
@echo ${${_s}:Q}
.endfor

Why would one use it rather than make -V?
Vadim Zhukov
2017-12-22 23:02:05 UTC
Permalink
Post by Thomas Levine
The normal port Makefile includes this "show" target.
$ grep -A3 ^show: /usr/ports/infrastructure/mk/bsd.port.mk
.for _s in ${show}
@echo ${${_s}:Q}
.endfor
Why would one use it rather than make -V?
The "show" gives you expanded value when -V gives raw one. Just assign
"foo=$bar" in Makefile and see what happens in both cases.

--
WBR,
Vadim Zhukov
Marc Espie
2017-12-23 02:12:52 UTC
Permalink
Post by Thomas Levine
The normal port Makefile includes this "show" target.
$ grep -A3 ^show: /usr/ports/infrastructure/mk/bsd.port.mk
.for _s in ${show}
@echo ${${_s}:Q}
.endfor
Why would one use it rather than make -V?
make -V doesn't expand variables recursively

Won't change it, because it might break stuff that depends on it,
and also, because it could sometimes be useful as it.

Loading...