Improve Makefile - clic - Clic is an command line interactive client for gopher written in Common LISP
 (HTM) git clone git://bitreich.org/clic/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/clic/
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Tags
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 7d40a9089da4643942a3181a54ce80bd12bcfad4
 (DIR) parent acc44acf23b27534ae3c21fff235a8940c99e543
 (HTM) Author: Quentin Rameau <quinq@fifth.space>
       Date:   Fri,  3 Nov 2017 18:35:53 +0100
       
       Improve Makefile
       
       Diffstat:
         M Makefile                            |      37 ++++++++++++++++---------------
         M README.md                           |       2 +-
       
       2 files changed, 20 insertions(+), 19 deletions(-)
       ---
 (DIR) diff --git a/Makefile b/Makefile
       @@ -1,32 +1,33 @@
        # clic – a simple gopher client in lisp
        # See the LICENSE file for copyright and license details.
       -NAME = clic
       +.POSIX:
        
       -LISP   ?= ecl
       -PREFIX ?= /usr
       -BINDIR ?= ${PREFIX}/bin
       -MANDIR ?= ${PREFIX}/share/man/man1
       +BIN    = clic
       +LISP   = ecl
       +PREFIX = /usr
       +BINDIR = ${PREFIX}/bin
       +MANDIR = ${PREFIX}/share/man/man1
        
       -all: bin
       +all: ${BIN}
        
       -bin:
       -        ecl --load make-binary.lisp
       +${BIN}: clic.lisp
       +        ${LISP} --load make-binary.lisp
        
       -sbcl-bin:
       -        sbcl --load make-binary.lisp
       +standalone: clic.lisp
       +        ${MAKE} -e LISP=sbcl
        
       -install: all
       -        @echo installing executable to ${DESTDIR}${PREFIX}/bin
       -        @mkdir -p ${DESTDIR}${BINDIR}
       -        @cp -f ${NAME} ${DESTDIR}${BINDIR}
       -        @chmod 755 ${DESTDIR}${BINDIR}/${NAME}
       +install: ${BIN}
       +        @echo installing executable to "${DESTDIR}${PREFIX}/bin"
       +        @mkdir -p "${DESTDIR}${BINDIR}"
       +        @cp -f clic "${DESTDIR}${BINDIR}/${BIN}"
       +        @chmod 755 "${DESTDIR}${BINDIR}/${BIN}"
        
        uninstall:
       -        @echo removing executable file from ${DESTDIR}${PREFIX}/bin
       -        @rm -f ${DESTDIR}${BINDIR}/${NAME}
       +        @echo removing executable file from "${DESTDIR}${PREFIX}/bin"
       +        @rm -f "${DESTDIR}${BINDIR}/${BIN}"
        
        clean:
       -        rm -f clic clic.o clic.eclh clic.cxx
       +        rm -f "${BIN}" clic.o clic.eclh clic.cxx
        
        test:
                ${LISP} --load clic.lisp --load test.lisp
 (DIR) diff --git a/README.md b/README.md
       @@ -30,7 +30,7 @@ get a binary named *clic*. The makefile is a wrapper that call
        If you want to deploy **clic** without installing sbcl or ecl, you can
        create a standalone executable (10 Mb approximately) with sbcl.
        
       -    make sbcl-bin
       +    make standalone
        
        # Use it