Hands-on task
This task is step 7 of the course “Make: builds and automation”
Concatenate dependencies via $^
In /root/proj there are a.txt, b.txt, c.txt. Write a Makefile with a bundle target that depends on all three and concatenates them into a single file bundle in the same order. In the recipe use the automatic variable $^ (the list of all dependencies) instead of listing the names by hand.
What you'll practise:
- make
- automatic variables
- $^
- target dependencies