aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2013-01-02 11:41:02 -0800
committerJohn MacFarlane <fiddlosopher@gmail.com>2013-01-02 11:41:02 -0800
commita7cd65f2b3fee653555b83388530e8a9765bc22f (patch)
treedb3db9ef6f376745c2b37d8edf7285b58c199908
parent2e43980a67234abb0fd4d688f738206bd7cd0607 (diff)
downloadpandoc-a7cd65f2b3fee653555b83388530e8a9765bc22f.tar.gz
Makefile: Do submodule updates and install cabal-dev in make prep.
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index f44acbbee..5178e60b3 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
# This Makefile is for development only. It requires cabal-dev.
# To get started, do 'make prep' and then 'make' or 'make quick'.
-.PHONY: prep, all, quick, bench, clean, veryclean, install
+.PHONY: prep, submodules, all, quick, bench, clean, veryclean, install
all:
cabal-dev configure --enable-tests --enable-benchmarks && cabal-dev build
@@ -9,10 +9,14 @@ all:
prof:
cabal-dev configure --enable-tests --enable-library-profiling --enable-executable-profiling && cabal-dev build
-prep: pandoc-types
+prep: pandoc-types submodules
+ (cabal-dev --version || (cabal update && cabal install cabal-dev)) && \
cabal-dev update && \
cabal-dev install-deps --enable-library-profiling --enable-tests --enable-benchmarks
+submodules:
+ git submodule update --init
+
quick:
cabal-dev configure --enable-tests --disable-optimization && cabal-dev build