-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (40 loc) · 1.19 KB
/
Makefile
File metadata and controls
48 lines (40 loc) · 1.19 KB
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
47
48
ROSWELL_VERSION := v23.10.14.114
SBCL_VERSION := 2.5.10
TEST_FILE := tests/rbac-tests.lisp
install-roswell:
@if ! which ros > /dev/null 2>&1; then \
echo "Roswell not found. Installing..."; \
curl -L $(ROSWELL_BASE_URL)/$(ROSWELL_VERSION)/roswell_$(subst v,,$(ROSWELL_VERSION))-1_amd64.deb --output roswell.deb; \
sudo dpkg -i roswell.deb; \
ros install sbcl-bin/$(SBCL_VERSION); \
ros use sbcl-bin/$(SBCL_VERSION); \
echo "Roswell installation complete."; \
else \
echo "Roswell already installed. Skipping..."; \
fi
touch $@
install-dependencies:
ros install postmodern
ros install fiveam
ros install cl-csv
ros install trivial-utf-8
ros install ironclad
ros install swank
ros install mgl-pax
ros install macnod/dc-dlist/v1.0
ros install macnod/dc-ds/v0.5
ros install macnod/dc-time/v0.5
ros install macnod/p-log/v0.9
ros install macnod/dc-eclectic/v0.53
test:
scripts/run-tests "$(TEST_FILE)"
compile:
scripts/compile "$(TEST_FILE)"
test-ci:
ros run -- --disable-debugger --load "$(TEST_FILE)" --quit
repl:
scripts/rbac-tests-repl start "$(TEST_FILE)"
docs:
scripts/generate-readme "$(TEST_FILE)"
.PHONY: install-roswell install-dependencies test
.DEFAULT_GOAL := test