From cd90c50267ad3cee1340d891759c5330af566e3d Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Tue, 8 Aug 2023 23:41:40 -0500 Subject: Support multiple schemes --- Makefile | 36 +++++++++++++++++++++++++++++------- 1 file changed, 29 insertions(+), 7 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 38d0ce0..5c1c8b3 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,35 @@ # chicanery ## this makefile exists only to ... make ... cleaning up easier, really. -.PHONY: build install clean +NAME = chicanery -build: - chicken-install -n - -install: - chicken-install +default: + @echo "CHICANERY: subtly breaking scheme expectations" + @echo "Use R7RS and all of R7RS. The following schemes are supported:" + @sed -n 's/^\([^.].*\): *supported.*/- \1/p' Makefile +.PHONY: clean clean: - rm -f *.sh *.import.* *.inline *.link *.o *.so *.types + rm -f $(NAME) *.sh *.import.* *.inline *.link *.o* *.so *.types + +# Scheme implementation demoes + +.PHONY: supported +supported: + +.PHONY: chicken +chicken: supported chicanery.egg + csi -R chicanery + +.PHONY: guile +guile: supported + echo '(import (chicanery))' > /tmp/chicanery.guile-bootstrap + guile -L . -l /tmp/chicanery.guile-bootstrap + +.PHONY: gambit +gambit: supported chicanery\#.scm + gsi . -e '(import (chicanery))' - + +.PHONY: chibi +chibi: supported + chibi-scheme -I. -mchicanery -- cgit 1.4.1-21-gabe81