Activity - Makefiles
Grab our bagsimple code if you haven’t done so in last lecture:
cd ~/cs50
cp -r /thayerfs/courses/22fall/cosc050/workspace/bagsimple .
cd bagsimple/
#also copy the final Makefile
cp /thayerfs/courses/22fall/cosc050/workspace/activities/day12/Makefile .
and work in your group to modify the Makefile so it adds a phony test target, enabling you to later type
make test
and see it build bagsimple (if necessary) and run a test of the bagsimple
program. Remember you can list bash commands in a Makefile. In this case your test target should provide a number of names that ./bagsimple
will store and then print.