1
2
3
4
5
6
7
8
9
10
11
12
13
|
MANPAGES=$(patsubst %.md,%,$(wildcard *.md))
all: $(MANPAGES)
clean:
rm -f $(MANPAGES)
%: %.md
# Incorrect escaping in code blocks:
# http://code.google.com/p/pandoc/issues/detail?id=223
pandoc -s -t man $< | sed -e '/^[^.]/ s/\\"/"/g' > $@
.PHONY: all clean
|