summaryrefslogtreecommitdiff
path: root/makefile
blob: fdadaeee7e2ad7ceeedf010b831e93924e7e1985 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
MD = $(shell find md/ -type f -name '*.md')
INC = $(shell find md/ -type f -name '*.inc')
HTML_PAGE = $(patsubst md/%.md, html/%.html, $(MD))
HTML_INCL = $(patsubst md/%.inc, html/%.html, $(INC))

.PHONY: all
all: $(HTML_PAGE)

html/%.html: md/%.md 
	@mkdir -p "$(@D)"
	@pandoc "$<" -s -o "$@"

clean:
	@rm -rf html/