makefile: add a Makefile for installing/uninstalling system wide.

This commit is contained in:
Solene Rapenne 2021-07-20 23:27:55 +02:00
parent cb2c3425cb
commit cd56cc4209
1 changed files with 23 additions and 0 deletions

23
Makefile Normal file
View File

@ -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