aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
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