From ea7c76c2f84386f54163bca069ec4448371a58ba Mon Sep 17 00:00:00 2001 From: Harry Jeffery Date: Sun, 22 Nov 2015 20:32:04 +0000 Subject: Add make uninstall rule --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 13d9921..77bf1a1 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: clean install +.PHONY: clean install uninstall prefix = /usr @@ -31,6 +31,11 @@ clean: @$(RM) $(TARGET) $(OBJECTS) install: $(TARGET) - install -D -m 0755 $(TARGET) $(DESTDIR)$(prefix)/bin/$(TARGET) + install -D -m 0755 $(TARGET) $(DESTDIR)$(prefix)/bin/imv install -D -m 0644 doc/imv.1 $(DESTDIR)$(prefix)/share/man/man1/imv.1 install -D -m 0644 files/imv.desktop $(DESTDIR)$(prefix)/share/applications/imv.desktop + +uninstall: + $(RM) $(DESTDIR)$(prefix)/bin/imv + $(RM) $(DESTDIR)$(prefix)/share/man/man1/imv.1 + $(RM) $(DESTDIR)$(prefix)/share/applications/imv.desktop -- cgit v1.2.3