SHELL = /bin/sh MD = $(shell find . -name '[!README]*.md') GMI := $(patsubst %.md,gemini/%.gmi,$(MD:./%=%)) XHTML := $(patsubst %.md,www/%.xhtml,$(MD:./%=%)) all: gemini www %/: mkdir $@ gemini/%.gmi: www/%.xhtml gemini/ xsltproc gmi.xslt $< > $@ gemini: $(GMI) www/%.xhtml: %.md www/ makepage < $< | xsltproc xhtml.xslt - > $@ www: $(XHTML) clean: rm -f $(GMI) $(XHTML) .PHONY: all gemini www