travismaketwo_steps
April 21, 2020 ยท View on GitHub
| Branch | ![]() |
|---|---|
master | |
develop |
Travis CI make example of a pipeline of one step.
Explanation

First, we specify in the Makefile that when we do make, the
success is dependent on output.txt:
all: output.txt
Second, we specify in the Makefile that output.txt is dependent on
intermediate.txt. If intermediate.txt changes,
it will be copied to output.txt,
after which some text is appended.
output.txt: intermediate.txt
cp intermediate.txt output.txt
echo "cool" >> output.txt
Third, we specify in the Makefile that intermediate.txt is dependent on
input.txt. If input.txt changes,
it will be copied to intermediate.txt,
after which some text is appended.
intermediate.txt: input.txt
cp input.txt intermediate.txt
echo "is" >> intermediate.txt
FAQ
How did you make the picture?
Using make pic (also part of the Makefile),
which uses lindenb/makefile2graph.
