From 79c26eefdb6aefc9fd4a653e5d32abf6bdbfebee Mon Sep 17 00:00:00 2001 From: Robin Candau Date: Sat, 13 Apr 2024 13:36:13 +0200 Subject: [PATCH] Add comments to the Makefile --- Makefile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 33579f6..cd3df6c 100644 --- a/Makefile +++ b/Makefile @@ -7,18 +7,27 @@ PREFIX ?= /usr/local all: install: + # Install the main script install -Dm 755 "src/script/${pkgname}.sh" "${DESTDIR}${PREFIX}/bin/${pkgname}" - + + # Archive and install man pages gzip -c "doc/man/${pkgname}.1" > "${pkgname}.1.gz" install -Dm 644 "${pkgname}.1.gz" "${DESTDIR}${PREFIX}/share/man/man1/${pkgname}.1.gz" rm -f "${pkgname}.1.gz" - + + # Install documentation install -Dm 644 README.md "${DESTDIR}${PREFIX}/share/doc/${pkgname}/README.md" uninstall: + # Delete the main script rm -f "${DESTDIR}${PREFIX}/bin/${pkgname}" + + # Delete man pages rm -f "${DESTDIR}${PREFIX}/share/man/man1/${pkgname}.1.gz" + + # Delete documentation rm -rf "${DESTDIR}${PREFIX}/share/doc/${pkgname}/" test: + # Run the help function of the main script as a simple test "src/script/${pkgname}.sh" --help