mirror of
https://github.com/simonmichael/hledger.git
synced 2024-12-28 21:02:04 +03:00
shake: update txt man pages when man pages change
This commit is contained in:
parent
2931bd6085
commit
c773a81447
1
Shake.hs
1
Shake.hs
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user