Refactor Makefile.

Allow PREFIX to be changed by the user.

Add debug rule that includes debug symbols and a DEBUG macro.

Generate man files when installing and remove them when uninstalling.