3 ms·
Or, if you're using BSD Make: # make -V SOURCE_FILES
by cperciva 12y ago
Or, if you're using BSD Make:
# make -V SOURCE_FILES
- mzs 12y agoOh 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