diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d865ae7 --- /dev/null +++ b/Makefile @@ -0,0 +1,25 @@ +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 |