From fa996828b1a6ed8e88bd7da96a30b31ab9eaf78a Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Wed, 30 Jan 2019 12:45:09 -0800 Subject: [PATCH] shake: fix build's doc deps; cleanup [ci skip] --- Shake.hs | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/Shake.hs b/Shake.hs index 929e99f4e..b392e2131 100755 --- a/Shake.hs +++ b/Shake.hs @@ -317,7 +317,7 @@ main = do -- WEBSITE HTML & ASSETS - phony "website" $ need $ [ "webassets" , "webhtml" ] + phony "website" $ need [ "webassets" , "webhtml" ] -- copy all static asset files (files with certain extensions -- found under sites, plus one or two more) to sites/_site/ @@ -353,19 +353,10 @@ main = do -- HLEDGER PACKAGES/EXECUTABLES - phony "build" $ cmd Shell "stack build" + phony "build" $ need packages - -- shortpackagenames |%> \out -> do - -- let pkg | out=="cli" = "hledger" - -- | otherwise = "hledger-"++out - -- -- need ["hledger/Hledger/Cli/Commands/Close.md"] - -- -- need ["hledger/hledger.1"] - -- -- need ["hledger/hledger.info"] - -- -- need ["hledger/hledger.txt"] - -- cmd Shell "stack build" pkg - - -- build (and install) any of the hledger packages, after - -- generating any doc files they embed or import. + -- build any of the hledger packages, after generating any doc + -- files they embed or import. sequence_ [ phony pkg $ do need $ fromMaybe [] $ lookup pkg embeddedFiles cmd Shell "stack build " pkg