mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-07 21:15:19 +03:00
shake: fix build's doc deps; cleanup
[ci skip]
This commit is contained in:
parent
4c5ac4dd06
commit
fa996828b1
17
Shake.hs
17
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
|
||||
|
Loading…
Reference in New Issue
Block a user