3 ms·
Oh man I've missed -V! I've done something like this in gmake, basically using the : in sh and -n of make to print whatever I wanted: $ foo() { echo 'foo: ;
by mzs 12y ago
Oh man I've missed -V! I've done something like this in gmake, basically using the : in sh and -n of make to print whatever I wanted:
$ foo() { echo 'foo: ; @ : ${'"$1"'}'; echo include Makefile; }
$ foo SRCS
foo: ; @ : ${SRCS}
include Makefile
$ foo OBJS | make -n -f- foo
: foo.o bar.o baz.o