Makefile.am 285 Bytes
Newer Older
Baptiste Daroussin's avatar
Baptiste Daroussin committed
1
2
3
4
5
6
EXTRA_DIST = api.md

dist_man_MANS = libucl.3

gen-man: @PANDOC@
	tail -n +$$(grep -n '# Synopsis' api.md | cut -d':' -f1) api.md | \
7
	cat pandoc.template - | sed -e 's/^# \(.*\)/# \U\1/' \
8
	-e "s/%%date%%/$$(LANG=C date +'%d %B, %Y')/" | \
9
	@PANDOC@ -s -f markdown -t man -o libucl.3