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: %.md md2gemini --links=paragraph < $< > $@ gemini: gemini/ $(GMI) www/%.xhtml: %.md makepage < $< | xsltproc xhtml.xslt - > $@ www: www/ $(XHTML) clean: rm -f $(GMI) $(XHTML) .PHONY: all gemini www