makefile: add a Makefile for installing/uninstalling system wide.
This commit is contained in:
parent
cb2c3425cb
commit
cd56cc4209
|
@ -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…
Reference in New Issue