patat/Makefile
Jasper Van der Jeugt ded1d743bc Bump make-man script
2016-12-01 14:43:22 +01:00

16 lines
354 B
Makefile

PANDOC_MINOR_VERSION=$(shell ghc-pkg latest pandoc | sed 's/.*-//' | cut -d. -f2)
extra/patat.1: README.md extra/make-man
./extra/make-man >$@
extra/make-man: extra/make-man.hs
ghc -DPANDOC_MINOR_VERSION=${PANDOC_MINOR_VERSION} -Wall -o $@ $<
man: extra/patat.1
# Also check if we can generate the manual.
test: man
bash test.sh
.PHONY: man test