diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2013-01-02 11:41:02 -0800 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2013-01-02 11:41:02 -0800 |
commit | a7cd65f2b3fee653555b83388530e8a9765bc22f (patch) | |
tree | db3db9ef6f376745c2b37d8edf7285b58c199908 | |
parent | 2e43980a67234abb0fd4d688f738206bd7cd0607 (diff) | |
download | pandoc-a7cd65f2b3fee653555b83388530e8a9765bc22f.tar.gz |
Makefile: Do submodule updates and install cabal-dev in make prep.
-rw-r--r-- | Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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 |