I have a
Makefile with the following configured for installing
MANDIR = /usr/share/man/man1
MANPAGES = exec1.1 exec2.1
make install triggers the following:
install $(MANPAGES) $(MANDIR)
I want to have a
make uninstall which will undo this process.
Effectively, I need to do an
rm -rf $(MANDIR)/$(MANPAGE) for each
Lots of ways I could probably do this, including loops, etc. Any quick tricks though for having
rm -rf delete a list of files from a specified folder?