summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorportix <none@none>2013-03-03 22:49:08 +0100
committerportix <none@none>2013-03-03 22:49:08 +0100
commit14d0968e40b0b2e81bdea08410d59b04deb3bd15 (patch)
treea38c26127132cd22b903f011164e8e9714d1d026 /Makefile
parent738bc34efc3af0ccd82d1fd6f8fea50ddfb98043 (diff)
downloaddwb-14d0968e40b0b2e81bdea08410d59b04deb3bd15.zip
Create dwbem symlink for bash-completion
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index ac3037f3..c1f0e186 100644
--- a/Makefile
+++ b/Makefile
@@ -64,9 +64,10 @@ install-data: all
for file in $(EXTENSIONDIR)/*; do \
install -m 644 $$file $(DESTDIR)$(DATADIR)/$(REAL_NAME)/$$file; \
done
-ifdef bashcompletion
- install -d $(DESTDIR)/$(bashcompletion)
- install -m 644 $(CONTRIBDIR)/bash-completion $(DESTDIR)/$(bashcompletion)/dwb
+ifdef BASHCOMPLETION
+ install -d $(DESTDIR)/$(BASHCOMPLETION)
+ install -m 644 $(CONTRIBDIR)/bash-completion $(DESTDIR)/$(BASHCOMPLETION)/dwb
+ ln -s $(BASHCOMPLETION)/dwb $(DESTDIR)$(BASHCOMPLETION)/dwbem
endif
@@ -84,8 +85,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
+ifdef BASHCOMPLETION
+ $(RM) $(DESTDIR)$(BASHCOMPLETION)/dwb
+ unlink $(DESTDIR)$(BASHCOMPLETION)/dwbem
endif
distclean: clean