blob: d865ae7cd4a2215476eeac265225d639b00eaac0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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
|