Makefile: use stack.
This commit is contained in:
parent
1fde7a340b
commit
f3cb472f31
1 changed files with 6 additions and 22 deletions
28
Makefile
28
Makefile
|
@ -2,37 +2,21 @@ version=$(shell grep '^Version:' pandoc.cabal | awk '{print $$2;}')
|
||||||
pandoc=$(shell find dist -name pandoc -type f -exec ls -t {} \; | head -1)
|
pandoc=$(shell find dist -name pandoc -type f -exec ls -t {} \; | head -1)
|
||||||
|
|
||||||
quick:
|
quick:
|
||||||
cabal --ignore-sandbox configure --enable-tests -fembed_data_files --disable-optimization
|
stack install --flag 'pandoc:embed_data_files' --fast --test --test-arguments='-j4'
|
||||||
cabal build
|
|
||||||
|
|
||||||
full:
|
full:
|
||||||
cabal configure --enable-tests --enable-optimization -ftrypandoc -fembed_data_files --enable-benchmarks
|
stack install --flag 'pandoc:embed_data_files' --test --test-arguments='-j4' --pedantic
|
||||||
cabal build
|
stack haddock
|
||||||
cabal haddock
|
|
||||||
|
|
||||||
deps:
|
|
||||||
cabal install --only-dependencies --enable-tests -ftrypandoc -fembed_data_files --enable-benchmarks
|
|
||||||
|
|
||||||
prof:
|
|
||||||
cabal configure --enable-library-profiling --enable-executable-profiling --enable-optimization --enable-tests
|
|
||||||
cabal build
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
cabal test
|
stack test --test-arguments='-j4'
|
||||||
|
|
||||||
bench:
|
bench:
|
||||||
cabal bench
|
stack bench
|
||||||
|
|
||||||
changes_github:
|
changes_github:
|
||||||
pandoc --filter extract-changes.hs changelog -t markdown_github | pbcopy
|
pandoc --filter extract-changes.hs changelog -t markdown_github | pbcopy
|
||||||
|
|
||||||
install: full
|
|
||||||
cabal copy
|
|
||||||
cabal register
|
|
||||||
|
|
||||||
stack:
|
|
||||||
stack install --test --stack-yaml stack.full.yaml
|
|
||||||
|
|
||||||
dist: man/pandoc.1
|
dist: man/pandoc.1
|
||||||
cabal sdist
|
cabal sdist
|
||||||
rm -rf "pandoc-${version}"
|
rm -rf "pandoc-${version}"
|
||||||
|
@ -66,6 +50,6 @@ download_stats:
|
||||||
jq -r '.[] | .assets | .[] | "\(.download_count)\t\(.name)"'
|
jq -r '.[] | .assets | .[] | "\(.download_count)\t\(.name)"'
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
cabal clean
|
stack clean
|
||||||
|
|
||||||
.PHONY: deps quick full install clean test bench changes_github osxpkg dist prof download_stats
|
.PHONY: deps quick full install clean test bench changes_github osxpkg dist prof download_stats
|
||||||
|
|
Loading…
Reference in a new issue