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 7a532434a3f0949890ddb0b231a11f7eb3c597f0
parent acc44acf23b27534ae3c21fff235a8940c99e543
Author: Quentin Rameau <[email protected]>
Date: Fri, 3 Nov 2017 18:35:53 +0100
Improve Makefile
Diffstat:
M Makefile | 36 +++++++++++++++--------------…
1 file changed, 17 insertions(+), 19 deletions(-)
---
diff --git a/Makefile b/Makefile
@@ -1,32 +1,30 @@
# 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
-
-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
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.