I have the following Makefile:
all: generate print # <-- doesn\'t work
date:
date > date.txt
ls:
ls -la > ls.txt
generate: ls date
prin
Just add the pipe symbol:
all: | generate print
From the make manual:
Order-only prerequisites can be specified by placing a pipe symbol (
|
) in the prerequisites list: any prerequisites to the left of the pipe symbol are normal; any prerequisites to the right are order-only:targets : normal-prerequisites | order-only-prerequisites