aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2014-08-18 17:40:35 -0700
committerJohn MacFarlane <fiddlosopher@gmail.com>2014-08-18 17:40:35 -0700
commit112b2f9f5290be435c894693d88e8cf942e41e2a (patch)
tree554f9d9f131a3f907b1d7e5e8e8375181ef0882a /Makefile
parent84f27995ca43c879eace490ff1e57cbdde6b9d2c (diff)
downloadpandoc-112b2f9f5290be435c894693d88e8cf942e41e2a.tar.gz
Makefile tweaks.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile24
1 files changed, 12 insertions, 12 deletions
diff --git a/Makefile b/Makefile
index 0e1d0202e..760e67bfb 100644
--- a/Makefile
+++ b/Makefile
@@ -5,19 +5,21 @@ ifeq "${makemanpages}" ""
endif
setup=dist/setup/setup
MANPAGES=man/man1/pandoc.1 man/man5/pandoc_markdown.5
-CABALARGS=-fmake-pandoc-man-pages -ftrypandoc --enable-tests --enable-benchmarks
-
-all: build test
quick:
+ cabal install --only-dependencies --enable-tests
cabal configure --enable-tests --disable-optimization
cabal build
-deps:
- cabal install ${OPTIONS} ${CABALARGS} --only-dependencies
+full:
+ cabal install --only-dependencies --enable-tests -ftrypandoc -fmake-pandoc-man-pages -fembed_data_files --enable-benchmarks
+ cabal configure --enable-tests --enable-optimization -ftrypandoc -fmake-pandoc-man-pages -fembed_data_files --enable-benchmarks
+ cabal build
+ cabal haddock
-build:
- cabal configure ${OPTIONS} ${CABALARGS}
+prof:
+ cabal install --only-dependencies --enable-tests
+ cabal configure --enable-library-profiling --enable-executable-profiling --enable-optimization --enable-tests
cabal build
test:
@@ -26,12 +28,9 @@ test:
bench:
cabal bench
-install:
+install: full
cabal install
-haddock:
- cabal haddock
-
sdist: man
# note: cabal sdist doesn't work well with preprocessors for some cabal versions
${setup} sdist
@@ -54,6 +53,7 @@ osxpkg:
${makemanpages}
clean:
+ cabal clean
-rm ${MANPAGES}
-.PHONY: install all man clean test build bench haddock sdist osxpkg
+.PHONY: quick full install man clean test bench haddock sdist osxpkg dist prof