Hands-on task
Default target and dependencies
In /root/proj, write a Makefile with an all target that depends on two other targets — foo and bar. The foo target must create a file foo.out containing the word foo, and the bar target a file bar.out containing the word bar. The all target does nothing itself — it just pulls in both. Running bare make (with no arguments) must build both files. The Makefile is handy to write in the Editor tab above the terminal: in a Makefile it puts a real TAB at the start of a recipe line.
- make
- default target
- dependencies
- makefile
- build order