Add Makefile - dossier - console collection manager
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Tags
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit fc28a50f28d5f869cca48f0c506abf3b396d555b
 (DIR) parent 7ed02f47198f4845529c06fd04f49838634ba25a
 (HTM) Author: Solene Rapenne <solene@perso.pw>
       Date:   Sat, 21 Jul 2018 00:40:48 +0200
       
       Add Makefile
       
       Diffstat:
         A Makefile                            |      30 ++++++++++++++++++++++++++++++
       
       1 file changed, 30 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/Makefile b/Makefile
       @@ -0,0 +1,30 @@
       +# cdb – a console collection manage
       +# See the LICENSE file for copyright and license details.
       +.POSIX:
       +
       +VERSION = 0.1
       +
       +BIN    = cdb
       +PREFIX = /usr
       +BINDIR = ${PREFIX}/bin
       +MANDIR = ${PREFIX}/share/man
       +
       +all:
       +
       +install: 
       +        @echo installing executable to "${DESTDIR}${PREFIX}/bin"
       +        @mkdir -p "${DESTDIR}${BINDIR}"
       +        @cp -f "${BIN}" "${DESTDIR}${BINDIR}/${BIN}"
       +        @chmod 755 "${DESTDIR}${BINDIR}/${BIN}"
       +        @echo installing manual page to ${DESTDIR}${MANDIR}/man1
       +        @mkdir -p ${DESTDIR}${MANDIR}/man1
       +        @sed "s/VERSION/${VERSION}/g" < ${BIN}.1 > ${DESTDIR}${MANDIR}/man1/${BIN}.1
       +        @chmod 644 ${DESTDIR}${MANDIR}/man1/${BIN}.1
       +
       +uninstall:
       +        @echo removing executable file from "${DESTDIR}${PREFIX}/bin"
       +        @rm -f "${DESTDIR}${BINDIR}/${BIN}"
       +        @echo removing manual page from ${DESTDIR}${MANDIR}/man1
       +        @rm -f ${DESTDIR}${MANDIR}/man1/${BIN}.1
       +
       +.PHONY: all install uninstall clean