aboutsummaryrefslogtreecommitdiffstats
path: root/mk/shell.mk
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2015-12-11 18:51:43 +0100
committerMattias Andrée <maandree@member.fsf.org>2015-12-11 18:51:43 +0100
commit6f31f5514b84cdbc73c1c84d62086f7d2ffc3270 (patch)
tree07e095b0f3b5ff0f15da8c6415f725d63542eef4 /mk/shell.mk
parenttexinfo>=4.11 is (optionally) required (diff)
downloadscrotty-6f31f5514b84cdbc73c1c84d62086f7d2ffc3270.tar.gz
scrotty-6f31f5514b84cdbc73c1c84d62086f7d2ffc3270.tar.bz2
scrotty-6f31f5514b84cdbc73c1c84d62086f7d2ffc3270.tar.xz
improve make files
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to 'mk/shell.mk')
-rw-r--r--mk/shell.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/mk/shell.mk b/mk/shell.mk
index 49b50b7..853e368 100644
--- a/mk/shell.mk
+++ b/mk/shell.mk
@@ -136,27 +136,33 @@ endif
# BUILD RULES:
+# Built tab-completion scripts for GNU Bash.
.PHONY: bash
bash: $(foreach F,$(_AUTO_COMPLETE),bin/$(F).bash-completion)
+# Built tab-completion scripts for fish.
.PHONY: fish
fish: $(foreach F,$(_AUTO_COMPLETE),bin/$(F).fish-completion)
+# Built tab-completion scripts for Z shell.
.PHONY: zsh
zsh: $(foreach F,$(_AUTO_COMPLETE),bin/$(F).zsh-completion)
+# Built a tab-completion script for GNU Bash.
bin/%.bash-completion: $(v)src/%$(__AAC)
@$(PRINTF_INFO) '\e[00;01;31mAUTO-AUTO-COMPLETE\e[34m %s\e[00m$A\n' "$@"
@$(MKDIR) -p bin
$(Q)$(AUTO_AUTO_COMPLETE) bash -o $@ -s $< $(__SHELL_COMMAND) #$Z
@$(ECHO_EMPTY)
+# Built a tab-completion script for fish.
bin/%.fish-completion: $(v)src/%$(__AAC)
@$(PRINTF_INFO) '\e[00;01;31mAUTO-AUTO-COMPLETE\e[34m %s\e[00m$A\n' "$@"
@$(MKDIR) -p bin
$(Q)$(AUTO_AUTO_COMPLETE) fish -o $@ -s $< $(__SHELL_COMMAND) #$Z
@$(ECHO_EMPTY)
+# Built a tab-completion script for Z shell.
bin/%.zsh-completion: $(v)src/%$(__AAC)
@$(PRINTF_INFO) '\e[00;01;31mAUTO-AUTO-COMPLETE\e[34m %s\e[00m$A\n' "$@"
@$(MKDIR) -p bin
@@ -166,6 +172,7 @@ bin/%.zsh-completion: $(v)src/%$(__AAC)
# INSTALL RULES:
+# Install tab-completion scripts for GNU Bash.
.PHONY: install-bash
install-bash: $(foreach F,$(_AUTO_COMPLETE),bin/$(F).bash-completion)
@$(PRINTF_INFO) '\e[00;01;31mINSTALL\e[34m %s\e[00m\n' "$@"
@@ -178,6 +185,7 @@ ifdef __SHELL_COMMAND
endif
@$(ECHO_EMPTY)
+# Install tab-completion scripts for fish.
.PHONY: install-fish
install-fish: $(foreach F,$(_AUTO_COMPLETE),bin/$(F).fish-completion)
@$(PRINTF_INFO) '\e[00;01;31mINSTALL\e[34m %s\e[00m\n' "$@"
@@ -190,6 +198,7 @@ ifdef __SHELL_COMMAND
endif
@$(ECHO_EMPTY)
+# Install tab-completion scripts for Z shell.
.PHONY: install-zsh
install-zsh: $(foreach F,$(_AUTO_COMPLETE),bin/$(F).zsh-completion)
@$(PRINTF_INFO) '\e[00;01;31mINSTALL\e[34m %s\e[00m\n' "$@"
@@ -205,6 +214,7 @@ endif
# UNINSTALL RULES:
+# Uninstall tab-completion.
.PHONY: uninstall-shell
uninstall-shell:
ifndef __SHELL_COMMAND