mirror of
https://github.com/jaspervdj/patat.git
synced 2024-11-23 00:09:05 +03:00
16 lines
348 B
Makefile
16 lines
348 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} -o $@ $<
|
|
|
|
man: extra/patat.1
|
|
|
|
# Also check if we can generate the manual.
|
|
test: man
|
|
bash test.sh
|
|
|
|
.PHONY: man test
|