build - makefile, multiple inputs, one output. keeping fresh state. possible? -
i have 1 target takes several input files , generate one.
right i'm ignoring freshness state of input files , running .phony
file.out: $(cmd) input/* file.out
i'd have like:
file.out: $(wildcard input/*) $(cmd) $^ $@
...so create not run cmd every time input haven't changed.
remove .phony target.
cmd := cat file.out: $(wildcard input/*) $(cmd) $^ > $@
build makefile make wildcard gnu-make
No comments:
Post a Comment