shake: "guidepages" also needs to build pandoc filters

This commit is contained in:
Simon Michael 2017-12-08 15:38:13 -08:00
parent 2fd40b3716
commit a078936c86

View File

@ -319,7 +319,7 @@ main = do
phony "guideall" $ need [ guideall ] phony "guideall" $ need [ guideall ]
guideall %> \out -> do guideall %> \out -> do
need guidepages -- XXX seems not to work, not rebuilt when a recipe changes need $ guidepages ++ pandocFilters -- XXX seems not to work, not rebuilt when a recipe changes
liftIO $ writeFile guideall "* toc\n\n" -- # User Guide\n\n -- TOC style is better without main heading, liftIO $ writeFile guideall "* toc\n\n" -- # User Guide\n\n -- TOC style is better without main heading,
forM_ guidepages $ \f -> do -- site/csv-import.md, site/account-aliases.md, ... forM_ guidepages $ \f -> do -- site/csv-import.md, site/account-aliases.md, ...
cmd Shell ("printf '\\n\\n' >>") guideall :: Action ExitCode cmd Shell ("printf '\\n\\n' >>") guideall :: Action ExitCode