xref: /freebsd/contrib/libucl/doc/Makefile.am (revision b0d29bc47dba79f6f38e67eabadfb4b32ffd9390)
1EXTRA_DIST = api.md
2
3dist_man_MANS = libucl.3
4
5gen-man: @PANDOC@
6	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
10