summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 91cb3dc9..b5564ed5 100644
--- a/Makefile
+++ b/Makefile
@@ -5,12 +5,12 @@ pull:
git pull
build: deps dist/setup-config
- cabal build
+ cabal build || (cabal configure; cabal build)
$(MAKE) tags
ln -sf dist/build/propellor/propellor
deps:
- if [ $$(whoami) = root ]; then apt-get install ghc cabal-install libghc-missingh-dev libghc-ansi-terminal-dev libghc-ifelse-dev libghc-unix-compat-dev libghc-hslogger-dev; fi
+ @if [ $$(whoami) = root ]; then apt-get install ghc cabal-install libghc-missingh-dev libghc-ansi-terminal-dev libghc-ifelse-dev libghc-unix-compat-dev libghc-hslogger-dev; fi
dist/setup-config: propellor.cabal
cabal configure