freebsd-dev/contrib/libucl/doc/Makefile.am
2015-10-27 21:24:09 +00:00

10 lines
285 B
Makefile

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