patat/Makefile

16 lines
348 B
Makefile
Raw Normal View History

PANDOC_MINOR_VERSION=$(shell ghc-pkg latest pandoc | sed 's/.*-//' | cut -d. -f2)
2016-11-18 14:38:04 +03:00
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} -o $@ $<
2016-11-18 14:38:04 +03:00
man: extra/patat.1
# Also check if we can generate the manual.
test: man
2016-11-18 14:38:04 +03:00
bash test.sh
.PHONY: man test