makefile: add a Makefile for installing/uninstalling system wide. - potcasse - Podcast publication made easy
HTML git clone git://bitreich.org/potcasse git://hg6vgqziawt5s4dj.onion/potcasse
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR README
DIR LICENSE
---
DIR commit cd56cc42092d251f5d84f6481209792fa12605b5
DIR parent cb2c3425cbac85e6bdf7186504364d61814cbc6e
HTML Author: Solene Rapenne <solene@perso.pw>
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(-)
---
DIR 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