Hash :
57d82fdf
Author :
Thomas de Grivel
Date :
2022-12-04T00:24:55
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
## Adams - UNIX system administration tool written in Common Lisp
## Copyright 2013-2022 Thomas de Grivel <thodg@kmx.io>
PACKAGE = cl-unix-cybernetics
VERSION = 0.3.2
RELEASE_DIR = ${PACKAGE}-${VERSION}
RELEASE_TARBALL = ${PACKAGE}-${VERSION}.tar.gz
RELEASE_DEPS_TARBALL = ${PACKAGE}-${VERSION}.deps.tar.gz
PROGRAM = build/cl-unix-cybernetics
PREFIX = /usr/local
LISP = sbcl --dynamic-space-size 2048
LISP_LOAD = ${LISP} --load
CLEANFILES = build/*
DISTCLEANFILES = ${RELEASE_DIR} ${RELEASE_TARBALL} ${RELEASE_DEPS_TARBALL}
all: ${PROGRAM}
deps:
LANG=C.UTF-8 ${LISP_LOAD} prepare-build.lisp --quit
build/systems.lisp: prepare-build.lisp adams.asd
LANG=C.UTF-8 ${LISP_LOAD} prepare-build.lisp --quit
${PROGRAM}: build.lisp config.lisp build/systems.lisp toplevel.lisp
LANG=C.UTF-8 ${LISP_LOAD} build.lisp --eval '(build "${PROGRAM}")' --quit
install:
install -m 0755 ${PROGRAM} ${PREFIX}/bin
release: ${RELEASE_TARBALL} ${RELEASE_DEPS_TARBALL}
${RELEASE_TARBALL}:
mkdir ${RELEASE_DIR}
find . -name build -prune -or -name '*.lisp' -or -name '*.asd' -or -name '*.md' | cpio -pd ${RELEASE_DIR}
tar czf ${RELEASE_TARBALL} ${RELEASE_DIR}
${RELEASE_DEPS_TARBALL}:
tar czf ${RELEASE_DEPS_TARBALL} build/*.lisp
clean:
rm -rf ${CLEANFILES}
distclean:
rm -rf ${DISTCLEANFILES}
.PHONY: all clean deps install ${PROGRAM} release