changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > demo / makefile

changeset 41: 81b7333f27f8
parent: 77da08c7f445
author: Richard Westhaver <ellis@rwest.io>
date: Sun, 16 Jun 2024 22:15:04 -0400
permissions: -rw-r--r--
description: more examples
1 # otom8/demo makefile
2 MODE?=release
3 LISP?=sbcl
4 CFG?=default.cfg
5 L_C=$(L) --no-userinit
6 L_D=$(L) --load demo.asd --eval '(ql:quickload "demo")'
7 L_S=$(L) --script
8 ARCH?=
9 A_C=ifeq ($(ARCH),x86_64) A_C=arch -$(ARCH) endif
10 .PHONY:build
11 RS:Cargo.toml rustfmt.toml src/crates/*
12 CL:*/*.asd */*.lisp
13 deps:;
14 clean:;rm -rf **/*.fasl;cargo clean
15 fmt:$(RS);cargo fmt
16 build:$(RS) $(CL);cargo build --$(MODE);$(L_D)
17  --eval '(asdf:make "demo")' \
18  --eval '(quit)'
19 docs:$(RS);cargo doc
20 test:$(RS) $(CL);cargo test;$(L_D) --eval '(asdf:test "demo")' --eval '(quit)'
21 #pack:;scripts/pack.ros
22 #check:;scripts/check.ros
23 ci:clean fmt build docs test;