
INPUTS := $(wildcard *.scd)

man: $(addsuffix .gz, $(basename $(INPUTS)))

html: $(addsuffix .html, $(basename $(INPUTS)))

all: html man

%.gz: %.scd
	scdoc < $< | gzip > $@

%.html: %.scd
	scd2html < $< > $@

cheat-sheet.pdf: cheat-sheet.typ
	typst compile ./cheat-sheet.typ

clean:
	rm -f *.html *.gz *.pdf

.PHONY: all clean html man
