Add attach and install rules to the Makefile.