Recently Written · git

cl-yag

Mirror and rewrite of Solène Rapenne's cl-yag SSG of renown

git clone https://github.com/equwal/cl-yag

Log | Files | Refs


Makefile (685 bytes)

1 # Find the first available Lisp implementation
2 LISPS?=ecl sbcl clisp abcl gcl cmu corman lucid lispworks allegro
3 LISP := $(shell for lisp in $(LISPS); do \
4 	if command -v $$lisp >/dev/null 2>&1; then \
5 		echo $$lisp; \
6 		break; \
7 	fi; \
8 done)
9 
10 all: html gopher gemini
11 
12 html: $(HTML) css
13 	mkdir -p "output/html/static"
14 	$(LISP) --load generator.lisp
15 
16 gemini:
17 	mkdir -p "output/gemini/articles/"
18 
19 css:
20 	mkdir -p "output/html/static"
21 	cp -fr static/* "output/html/static/"
22 
23 gopher:
24 	mkdir -p "output/gopher"
25 
26 clean: temp cleanhtml cleangopher cleangemini
27 
28 temp:
29 	rm -fr "temp"
30 
31 cleanhtml:
32 	rm -fr output/html/*
33 
34 cleangopher:
35 	rm -fr output/gopher/*
36 
37 cleangemini:
38 	rm -fr output/gemini/*