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 --- Makefile (1023B) --- 1 # clic – a simple gopher client in lisp 2 # See the LICENSE file for copyright and license details. 3 .POSIX: 4 5 6 BIN = clic 7 LISP = ecl 8 PREFIX = /usr 9 BINDIR = ${PREFIX}/bin 10 MANDIR = ${PREFIX}/share/man 11 12 all: ${BIN} 13 14 ${BIN}: clic.lisp clic.asd make-binary.lisp 15 ecl -norc -load make-binary.lisp 16 17 install: ${BIN} 18 @echo installing executable to "${DESTDIR}${PREFIX}/bin" 19 @mkdir -p "${DESTDIR}${BINDIR}" 20 @cp -f clic "${DESTDIR}${BINDIR}/${BIN}" 21 @chmod 755 "${DESTDIR}${BINDIR}/${BIN}" 22 @echo installing manual page to "${DESTDIR}${MANDIR}/man1" 23 @mkdir -p "${DESTDIR}${MANDIR}/man1" 24 @cp -f clic.1 "${DESTDIR}${MANDIR}/man1/clic.1" 25 @chmod 644 "${DESTDIR}${MANDIR}/man1/clic.1" 26 27 uninstall: 28 @echo removing executable file from "${DESTDIR}${PREFIX}/bin" 29 @rm -f "${DESTDIR}${BINDIR}/${BIN}" 30 @echo removing manual page from "${DESTDIR}${MANDIR}/man1" 31 @rm -f "${DESTDIR}${MANDIR}/man1/clic.1" 32 33 clean: 34 rm -f "${BIN}" clic.o clic.eclh clic.cxx 35 36 test: clean all 37 @sh run-test.sh ${LISP} 38 39 40 .PHONY: all install uninstall clean