Hands-on task
First Makefile: the build target
The /root/proj directory contains the source file main.c. Write a Makefile (in that same directory) with a build target that builds the program — in practice, it just copies main.c into a file named app. After make build, a file named app must appear in the directory, with contents identical to main.c. 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
- makefile
- targets and recipes
- tab syntax
- build