;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.
|
||||
phony "build" $ do
|
||||
let
|
||||
pkgs | null args = packages
|
||||
| otherwise = args
|
||||
args' = drop 1 args
|
||||
pkgs | null args' = packages
|
||||
| otherwise = args'
|
||||
sequence_ [ do
|
||||
need $ fromMaybe [] $ lookup pkg embeddedFiles
|
||||
cmd Shell "stack build " pkg :: Action ()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user