super makefile - clic - Clic is an command line interactive client for gopher written in Common LISP
HTML git clone git://bitreich.org/clic/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/clic/
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR README
DIR LICENSE
---
DIR commit 7df60569856d96cad4f4765710128b163484d74b
DIR parent 2392f6517875c5509aaddeefe3c3b3f531be9f96
HTML Author: Solene Rapenne <solene@perso.pw>
Date: Fri, 3 Nov 2017 15:41:13 +0000
super makefile
Diffstat:
M Makefile | 26 +++++++++++++++++++++++---
1 file changed, 23 insertions(+), 3 deletions(-)
---
DIR diff --git a/Makefile b/Makefile
@@ -1,8 +1,28 @@
-all: clean bin
+# clic – a simple gopher client in lisp
+# See the LICENSE file for copyright and license details.
+NAME = clic
+
+PREFIX ?= /usr
+BINDIR ?= ${PREFIX}/bin
+MANDIR ?= ${PREFIX}/share/man/man1
+
+all: bin
bin:
- ecl -load make-binary.lisp
+ ecl --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}/${NAME}
clean:
- rm clic clic.o
+ rm -f clic clic.o clic.eclh clic.cxx
+
+.PHONY: all install uninstall clean