Hands-on task
This task is step 3 of the course “Make: builds and automation”
A variable in a Makefile
In /root/proj there is src.txt. Write a Makefile where the name of the result is set by a variable OUT with the value result, and the build target copies src.txt into a file whose name is taken from this variable — $(OUT). After make build a result file should appear — a copy of src.txt.
What you'll practise:
- make
- make variables
- variable substitution
- targets and recipes