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

master
Solene Rapenne 2 years ago
parent cb2c3425cb
commit cd56cc4209
  1. 23
      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
Loading…
Cancel
Save