From 70fdce0d5b358cfa3e3fc94b23add1b6c92ea75c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?c=C3=A6l=C5=8Drum=20spect=C4=81tr=C4=ABx?= Date: Fri, 21 Nov 2025 22:23:46 +0100 Subject: [PATCH] Add Makefile --- Makefile | 19 +++++++++++++++++++ README.md | 6 ++++-- 2 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..11f1fc7 --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ +CSM := csm +PREFIX := /usr/local +INSTALL := install + +.PHONY: all +all: Makefile.csm + $(MAKE) -f Makefile.csm + +Makefile.csm: + $(CSM) -makefile Makefile.csm + +.PHONY: clean +clean: Makefile.csm + $(MAKE) -f Makefile.csm clean + rm -f Makefile.csm rain + +.PHONY: install +install: + $(INSTALL) -sDm755 rain $(DESTDIR)$(PREFIX)/bin/rain diff --git a/README.md b/README.md index b08cc77..0cb4568 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,15 @@ # Dependencies - [https://call-cc.org](CHICKEN Scheme) 5 or 6, -- A few CHICKEN extensions, installable using: ```sh +- A few CHICKEN extensions, installable using: +```sh chicken-install -s html-parser openssl http-client matchable srfi-18 ``` # Building -Compile using `csm` (requires `chicken-install -s csm`), or run `rain.sld` directly. +- Compile and install using `make` and `sudo make install`. +- Alternatively, run `./rain.sld` directly. # License