From 9178fb32486a9ed08b02ae1569fb0ebf1848ae1c Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Mon, 4 Feb 2008 14:50:00 +0100 Subject: [PATCH] add "uninstall" target --- Makefile | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8b899fb..3f55dcc 100644 --- a/Makefile +++ b/Makefile @@ -93,6 +93,32 @@ install-desktop: $(INSTALL) -m 0644 Micropolis.desktop $(DESTDIR)/$(APPLICATIONSDIR)/micropolis.desktop $(INSTALL) -m 0644 Micropolis.png $(DESTDIR)/$(PIXMAPDIR)/micropolis.png +uninstall: + rm -f $(DESTDIR)/$(BINDIR)/micropolis + rm -f $(DESTDIR)/$(LIBEXECDIR)/sim + -rmdir $(DESTDIR)/$(LIBEXECDIR) + rm -f $(DESTDIR)/$(DATADIR)/res/sounds/player + rm -f $(DESTDIR)/$(DATADIR)/res/sounds/*.wav + -rmdir $(DESTDIR)/$(DATADIR)/res/sounds + rm -f $(DESTDIR)/$(DATADIR)/res/dejavu-lgc/*ttf \ + $(DESTDIR)/$(DATADIR)/res/dejavu-lgc/fonts.alias \ + $(DESTDIR)/$(DATADIR)/res/dejavu-lgc/fonts.dir \ + $(DESTDIR)/$(DATADIR)/res/dejavu-lgc/fonts.scale + -rmdir $(DESTDIR)/$(DATADIR)/res/dejavu-lgc + for file in $(RES); do \ + rm $(DESTDIR)/$(DATADIR)/$$file; \ + done + -rmdir $(DESTDIR)/$(DATADIR)/res + rm -f $(DESTDIR)/$(DATADIR)/images/*.xpm + -rmdir $(DESTDIR)/$(DATADIR)/images + rm -f $(DESTDIR)/$(DATADIR)/cities/*.cty + -rmdir $(DESTDIR)/$(DATADIR)/cities + -rmdir $(DESTDIR)/$(DATADIR) + rm -f $(DESTDIR)/$(DOCDIR)/*.html $(DESTDIR)/$(DOCDIR)/README + -rmdir $(DESTDIR)/$(DOCDIR) + rm -f $(DESTDIR)/$(APPLICATIONSDIR)/micropolis.desktop + rm -f $(DESTDIR)/$(PIXMAPDIR)/micropolis.png + .PHONY: all clean install install-dirs install-bin install-res \ install-res-sounds install-res-dejavu-lgc install-images \ - install-cities install-doc install-desktop tcl tk tclx sim + install-cities install-doc install-desktop uninstall tcl tk tclx sim -- 2.39.5