Add Makefile

This commit is contained in:
cælōrum spectātrīx 2025-11-21 22:23:46 +01:00
parent 81a50c48c2
commit 70fdce0d5b
2 changed files with 23 additions and 2 deletions

19
Makefile Normal file
View file

@ -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

View file

@ -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