Makefile @ c2a0734fb39e

Update build process
author Steve Losh <steve@stevelosh.com>
date Fri, 28 Feb 2020 13:33:54 -0500
parents 674260595163
children c5a16c723abb
.PHONY: all vendor

all: vendor build/cacl-sbcl build/cacl-ccl build/cacl-abcl build/cacl-ecl build/cacl.1

# Vendor ----------------------------------------------------------------------
vendor/quickutils.lisp: vendor/make-quickutils.lisp
	cd vendor && sbcl --noinform --load make-quickutils.lisp  --eval '(quit)'

vendor: vendor/quickutils.lisp

# Build -----------------------------------------------------------------------
lisps := $(shell ffind '\.(asd|lisp)$$')

build:
	mkdir -p build

build/cacl-sbcl: build $(lisps)
	sbcl --load "src/build-binary.lisp"

build/cacl-ccl: build $(lisps) bin/cacl-ccl
	ccl --load "src/build-binary.lisp"
	cp bin/cacl-ccl build/

build/cacl-ecl: build $(lisps)
	cp bin/cacl-ecl build/

build/cacl-abcl: build $(lisps) bin/cacl-abcl
	cp bin/cacl-abcl build/

build/cacl.1: build $(lisps)
	sbcl --load "src/build-manual.lisp" --quit