aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2015-11-22 20:32:04 +0000
committerHarry Jeffery <harry@exec64.co.uk>2015-11-22 20:32:04 +0000
commitea7c76c2f84386f54163bca069ec4448371a58ba (patch)
treeb5ea5dc3e10b36b247f51fcb24dfcaabcf2fe3c1 /Makefile
parent99c9118a58c5d13c74aaffb93858ebe7b29adcad (diff)
downloadimv-ea7c76c2f84386f54163bca069ec4448371a58ba.tar.gz
Add make uninstall rule
Diffstat (limited to 'Makefile')
-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