changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > demo / makefile

changeset 21: 1059e7b52e47
parent: 3166a511fafb
child: ba323d8c0f93
author: ellis <ellis@rwest.io>
date: Sat, 03 Jun 2023 19:57:46 -0400
permissions: -rw-r--r--
description: cleanup
1 M?=release
2 L?=sbcl
3 L_C=$(L) --no-userinit
4 L_S=$(L) --script
5 P?=python3
6 ARCH?=
7 A_C=ifeq ($(ARCH),x86_64) A_C=arch -$(ARCH) endif
8 .PHONY:
9 RS:Cargo.toml build.rs lib.rs obj
10 CL:*.asd *.lisp
11 deps:;
12 clean:;rm -rf *.fasl;cargo clean
13 fmt:$(RS);cargo fmt
14 build:$(RS) $(CL);cargo build --$(M);$L --load demo.asd \
15  --eval '(ql:quickload :demo)' \
16  --eval '(asdf:make :demo)' \
17  --eval '(quit)'
18 ffi:build;cp target/$(M)/libdemo.dylib ffi;cd ffi;$(P) ffi/build.py
19 docs:$(RS);cargo doc
20 test:$(RS) $(CL);cargo test;$L tests.lisp
21 #pack:;scripts/pack.ros
22 #check:;scripts/check.ros
23 ci:clean fmt build ffi docs test;