mirror of
https://github.com/simonmichael/hledger.git
synced 2024-09-18 17:57:11 +03:00
;tools: Shake: add "orgfiles" for -VVV, fix their deps
This commit is contained in:
parent
e6b25bf9f3
commit
e386576255
10
Shake.hs
10
Shake.hs
@ -745,16 +745,22 @@ main = do
|
||||
phony "site" $ do
|
||||
need [
|
||||
"webmanuals"
|
||||
,".BACKLOG.md"
|
||||
,".ROADMAP.md"
|
||||
,"orgfiles"
|
||||
]
|
||||
cmd_ "make -C site build"
|
||||
|
||||
phony "orgfiles" $
|
||||
need [
|
||||
".BACKLOG.md"
|
||||
,".ROADMAP.md"
|
||||
]
|
||||
|
||||
-- These org files are converted to markdown for the website.
|
||||
[ ".ROADMAP.md"
|
||||
,".BACKLOG.md"
|
||||
] |%> \out -> do
|
||||
let src = drop 1 out -<.> "org"
|
||||
need [src]
|
||||
liftIO $ writeFile out $ unlines [
|
||||
"<!-- " ++ "Generated by \"Shake " ++ out ++ " from " ++ src ++ " -->"
|
||||
,"<div class=\"pagetoc\">"
|
||||
|
Loading…
Reference in New Issue
Block a user