From cef844ec9ddaca940a576d4a0d8e887d1eedffa2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sun, 19 Apr 2020 12:21:57 +0200 Subject: [PATCH] Move zsh completion to contrib folder --- Makefile | 11 ++++++----- abduco.zsh => contrib/abduco.zsh | 0 2 files changed, 6 insertions(+), 5 deletions(-) rename abduco.zsh => contrib/abduco.zsh (100%) diff --git a/Makefile b/Makefile index 3dbb2e7..156d56b 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,8 @@ LDFLAGS_STD ?= -lc -lutil STRIP ?= strip INSTALL ?= install -ZSHPREFIX ?= /usr/local +PREFIX ?= /usr/local +SHAREDIR ?= ${PREFIX}/share SRC = abduco.c @@ -47,8 +48,8 @@ install: abduco installdirs @mkdir -p ${DESTDIR}${MANPREFIX}/man1 @sed "s/VERSION/${VERSION}/g" < abduco.1 > ${DESTDIR}${MANPREFIX}/man1/abduco.1 @chmod 644 ${DESTDIR}${MANPREFIX}/man1/abduco.1 - @echo installing zsh completion file to ${DESTDIR}${ZSHPREFIX}/share/zsh/site-functions - @install -Dm644 abduco.zsh ${DESTDIR}${ZSHPREFIX}/share/zsh/site-functions/_abduco + @echo installing zsh completion file to ${DESTDIR}${SHAREDIR}/zsh/site-functions + @install -Dm644 contrib/abduco.zsh ${DESTDIR}${SHAREDIR}/zsh/site-functions/_abduco install-strip: install ${STRIP} ${DESTDIR}${PREFIX}/bin/abduco @@ -58,7 +59,7 @@ uninstall: @rm -f ${DESTDIR}${PREFIX}/bin/abduco @echo removing manual page from ${DESTDIR}${MANPREFIX}/man1 @rm -f ${DESTDIR}${MANPREFIX}/man1/abduco.1 - @echo removing zsh completion file from ${DESTDIR}/usr/share/zsh/site-functions - @rm -f ${DESTDIR}${ZSHPREFIX}/share/zsh/site-functions/_abduco + @echo removing zsh completion file from ${DESTDIR}${SHAREDIR}/zsh/site-functions + @rm -f ${DESTDIR}${SHAREDIR}/zsh/site-functions/_abduco .PHONY: all clean dist install installdirs install-strip uninstall debug diff --git a/abduco.zsh b/contrib/abduco.zsh similarity index 100% rename from abduco.zsh rename to contrib/abduco.zsh