aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2022-11-11 20:33:07 +0100
committerThomas Voss <mail@thomasvoss.com> 2022-11-11 20:35:10 +0100
commite9ce2691c913004051c418f7457072df49ca2680 (patch)
tree50bd3b441f64024a21e7f51c0f3685a6dada3d0e /Makefile
parent21ce4aad217872570c0f0a5a0a4e28f4bcdcf387 (diff)
Add ZSH completions
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 9 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index a27d0c8..c758d39 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,12 @@
.POSIX:
-CFLAGS = -Wall -Wextra -Wpedantic -Werror \
- -O3 -march=native -mtune=native -fomit-frame-pointer \
- -pipe -D_POSIX_C_SOURCE=200809
-PREFIX = /usr
-DPREFIX = ${DESTDIR}${PREFIX}
-MANDIR = ${DPREFIX}/share/man
+CFLAGS = -Wall -Wextra -Wpedantic -Werror \
+ -O3 -march=native -mtune=native -fomit-frame-pointer \
+ -pipe -D_POSIX_C_SOURCE=200809
+PREFIX = /usr
+DPREFIX = ${DESTDIR}${PREFIX}
+MANDIR = ${DPREFIX}/share/man
+ZCOMPDIR = ${DPREFIX}/share/zsh/functions/Completion/Unix
target = center
@@ -16,6 +17,7 @@ clean:
rm -f ${target}
install:
- mkdir -p ${DPREFIX}/bin ${MANDIR}/man1
+ mkdir -p ${DPREFIX}/bin ${MANDIR}/man1 ${ZCOMPDIR}
cp ${target} ${DPREFIX}/bin
cp ${target}.1 ${MANDIR}/man1
+ cp completions/_${target} ${ZCOMPDIR}