Wednesday, 12 August 2015

make -f-

Cited from make

"-f makefile
Use the description file makefile. If the pathname is the dash character (-), the standard input is used. If there are multiple instances of this option, they are processed in the order specified."

For example,
make -f- FOO=bar <<< 'goal:;@echo $(MAKECMDGOALS)'

====================================
Cited from Variables and Macros

'The stdin is redirected from a command-line string using bash's
here string, “<<<”, syntax.'

No comments:

Post a Comment