makefile: add a Makefile for installing/uninstalling system wide. - potcasse - … | |
git clone git://bitreich.org/potcasse git://hg6vgqziawt5s4dj.onion/potcasse | |
Log | |
Files | |
Refs | |
Tags | |
README | |
LICENSE | |
--- | |
commit cd56cc42092d251f5d84f6481209792fa12605b5 | |
parent cb2c3425cbac85e6bdf7186504364d61814cbc6e | |
Author: Solene Rapenne <[email protected]> | |
Date: Tue, 20 Jul 2021 23:27:55 +0200 | |
makefile: add a Makefile for installing/uninstalling system wide. | |
Diffstat: | |
A Makefile | 23 +++++++++++++++++++++++ | |
1 file changed, 23 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/Makefile b/Makefile | |
@@ -0,0 +1,23 @@ | |
+# potcasse – podcast self hosting made easy | |
+# See the LICENSE file for copyright and license details. | |
+.POSIX: | |
+ | |
+VERSION = 0.1 | |
+ | |
+BIN = potcasse | |
+PREFIX = /usr | |
+BINDIR = ${PREFIX}/bin | |
+ | |
+all: | |
+ | |
+install: | |
+ @echo installing executable to "${DESTDIR}${PREFIX}/bin" | |
+ @mkdir -p "${DESTDIR}${BINDIR}" | |
+ @cp -f "${BIN}" "${DESTDIR}${BINDIR}/${BIN}" | |
+ @chmod 555 "${DESTDIR}${BINDIR}/${BIN}" | |
+ | |
+uninstall: | |
+ @echo removing executable file from "${DESTDIR}${PREFIX}/bin" | |
+ @rm -f "${DESTDIR}${BINDIR}/${BIN}" | |
+ | |
+.PHONY: all install uninstall clean |