;tools: shake build: fix with no arguments
This commit is contained in:
parent
33d9b6f35d
commit
e79f45a737
5
Shake.hs
5
Shake.hs
@ -586,8 +586,9 @@ main = do
|
|||||||
-- This may also update .cabal files from package.yaml files, and/or install haskell deps.
|
-- This may also update .cabal files from package.yaml files, and/or install haskell deps.
|
||||||
phony "build" $ do
|
phony "build" $ do
|
||||||
let
|
let
|
||||||
pkgs | null args = packages
|
args' = drop 1 args
|
||||||
| otherwise = args
|
pkgs | null args' = packages
|
||||||
|
| otherwise = args'
|
||||||
sequence_ [ do
|
sequence_ [ do
|
||||||
need $ fromMaybe [] $ lookup pkg embeddedFiles
|
need $ fromMaybe [] $ lookup pkg embeddedFiles
|
||||||
cmd Shell "stack build " pkg :: Action ()
|
cmd Shell "stack build " pkg :: Action ()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user