-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (35 loc) · 971 Bytes
/
Makefile
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
PREFIX?=/usr/local
lisps := $(shell find . -type f \( -iname \*.asd -o -iname \*.lisp \))
all: binary
# Clean -----------------------------------------------------------------------
.PHONY: clean
clean:
rm -rf bin
# Info ------------------------------------------------------------------------
.PHONY: lisp-info
lisp-info:
sbcl --noinform --quit \
--load "build/info.lisp"
.PHONY: lisp-info-ros
lisp-info-ros:
ros run \
--load "build/info.lisp"
# Build -----------------------------------------------------------------------
.PHONY: binary
binary: binary-sbcl
.PHONY: binary-sbcl
binary-sbcl: bin $(lisps)
sbcl --noinform --quit \
--load "build/setup.lisp" \
--load "build/build.lisp"
.PHONY: binary-ros
binary-ros: bin $(lisps)
ros run \
--load "build/setup.lisp" \
--load "build/build.lisp"
bin:
mkdir -p bin
# Install ---------------------------------------------------------------------
.PHONY: install
install:
cp bin/cg* $(PREFIX)/bin/