shake: update txt man pages when man pages change

This commit is contained in:
Simon Michael 2016-04-13 22:47:19 -07:00
parent 2931bd6085
commit c773a81447

View File

@ -164,6 +164,7 @@ main = do
let txtmanpages = [m <.> "txt" | m <- manpages] -- hledger/doc/hledger.1.txt, hledger-lib/doc/journal.5.txt
phony "txtmanpages" $ need txtmanpages
txtmanpages |%> \out -> do
need manpages
let nroffsrc = dropExtension out -- hledger/doc/hledger.1
cmd Shell nroff "-man" nroffsrc ">" out