revert 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 123b5d235718046abcc402afd0b50790ca5c6c87 | |
parent 69e7fed7881b7f7419c7783072311b72be4212a5 | |
Author: Solene Rapenne <[email protected]> | |
Date: Fri, 3 Nov 2017 23:28:01 +0000 | |
revert makefile | |
Diffstat: | |
M Makefile | 36 ++++++++++++++++-------------… | |
1 file changed, 19 insertions(+), 17 deletions(-) | |
--- | |
diff --git a/Makefile b/Makefile | |
@@ -1,30 +1,32 @@ | |
# clic – a simple gopher client in lisp | |
# See the LICENSE file for copyright and license details. | |
-.POSIX: | |
+NAME = clic | |
-BIN = clic | |
-LISP = ecl | |
-PREFIX = /usr | |
-BINDIR = ${PREFIX}/bin | |
-MANDIR = ${PREFIX}/share/man/man1 | |
+LISP ?= ecl | |
+PREFIX ?= /usr | |
+BINDIR ?= ${PREFIX}/bin | |
+MANDIR ?= ${PREFIX}/share/man/man1 | |
-all: ${BIN} | |
+all: bin | |
-${BIN}: clic.lisp | |
- ${LISP} --load make-binary.lisp | |
+bin: | |
+ ecl --load make-binary.lisp | |
-install: ${BIN} | |
- @echo installing executable to "${DESTDIR}${PREFIX}/bin" | |
- @mkdir -p "${DESTDIR}${BINDIR}" | |
- @cp -f clic "${DESTDIR}${BINDIR}/${BIN}" | |
- @chmod 755 "${DESTDIR}${BINDIR}/${BIN}" | |
+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} | |
uninstall: | |
- @echo removing executable file from "${DESTDIR}${PREFIX}/bin" | |
- @rm -f "${DESTDIR}${BINDIR}/${BIN}" | |
+ @echo removing executable file from ${DESTDIR}${PREFIX}/bin | |
+ @rm -f ${DESTDIR}${BINDIR}/${NAME} | |
clean: | |
- rm -f "${BIN}" clic.o clic.eclh clic.cxx | |
+ rm -f clic clic.o clic.eclh clic.cxx | |
test: | |
${LISP} --load clic.lisp --load test.lisp |