Introduction
Introduction Statistics Contact Development Disclaimer Help
Improve Makefile - clic - Clic is an command line interactive client for gopher…
git clone git://bitreich.org/clic/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65…
Log
Files
Refs
Tags
README
LICENSE
---
commit 7d40a9089da4643942a3181a54ce80bd12bcfad4
parent acc44acf23b27534ae3c21fff235a8940c99e543
Author: Quentin Rameau <[email protected]>
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(-)
---
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
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
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.