summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorportix <none@none>2013-03-03 01:58:33 +0100
committerportix <none@none>2013-03-03 01:58:33 +0100
commit242e675a8788ef9f38b830340bc9055f573c09a2 (patch)
tree52d9ff9aa83bca9810310a89ada8bd7140a3dbe5 /Makefile
parent6443f50052d9e9ea425a490f481265abb38b5c01 (diff)
downloaddwb-242e675a8788ef9f38b830340bc9055f573c09a2.zip
Adding uninstall rule for bashcompletion
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 1a37b95b..ac3037f3 100644
--- a/Makefile
+++ b/Makefile
@@ -65,8 +65,8 @@ install-data: all
install -m 644 $$file $(DESTDIR)$(DATADIR)/$(REAL_NAME)/$$file; \
done
ifdef bashcompletion
- install -d $(bashcompletion)
- install -m 644 $(CONTRIBDIR)/bash-completion $(bashcompletion)/dwb
+ install -d $(DESTDIR)/$(bashcompletion)
+ install -m 644 $(CONTRIBDIR)/bash-completion $(DESTDIR)/$(bashcompletion)/dwb
endif
@@ -84,6 +84,9 @@ uninstall-data:
$(RM) -r $(DESTDIR)$(DATADIR)/$(REAL_NAME)
$(RM) -r $(DESTDIR)$(DATADIR)/applications/dwb.desktop
$(RM) -r $(DESTDIR)$(DATADIR)/pixmaps/dwb.png
+ifdef bashcompletion
+ $(RM) $(DESTDIR)$(bashcompletion)/dwb
+endif
distclean: clean