aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-12-18 09:52:24 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2021-12-18 09:55:16 -0800
commit6b0a560ae71b5ca7c2439d7470bed7b02c362a64 (patch)
treeceeedcce944df700d42ece34ca259bf6bf9c0092
parentbc947a4496404fb9bacaf459d048937c0e3f6c25 (diff)
downloadpandoc-6b0a560ae71b5ca7c2439d7470bed7b02c362a64.tar.gz
Improve 'make check'.
-rw-r--r--Makefile23
-rw-r--r--RELEASE-CHECKLIST2
2 files changed, 15 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index 7f36d16e7..ac0506328 100644
--- a/Makefile
+++ b/Makefile
@@ -43,6 +43,19 @@ ghci:
haddock:
stack haddock
+check: check-cabal checkdocs
+ cabal check # check cabal file
+ cabal outdated # check cabal dependencies
+ lsd # check that stack.yaml dependencies are up to date
+
+check-cabal: git-files.txt sdist-files.txt
+ @echo "Checking to see if all committed test/data files are in sdist."
+ diff -u $^
+
+checkdocs:
+ @echo "Checking for tabs in manual."
+ ! grep -q -n -e "\t" MANUAL.txt changelog.md
+
# Note: to accept current results of golden tests,
# make test TESTARGS='--accept'
test:
@@ -82,10 +95,6 @@ dist: man/pandoc.1
cd pandoc-${version}
stack setup && stack test && cd .. && rm -rf "pandoc-${version}"
-check: checkdocs check-cabal
-
-checkdocs:
- ! grep -q -n -e "\t" MANUAL.txt changelog.md
debpkg:
docker run -v `pwd`:/mnt \
@@ -135,14 +144,10 @@ update-website:
clean:
stack clean
-check-cabal: git-files.txt sdist-files.txt
- echo "Checking to see if all committed test/data files are in sdist."
- diff -u $^
-
sdist-files.txt: .FORCE
cabal sdist --list-only | sed 's/\.\///' | grep '^\(test\|data\)\/' | sort > $@
git-files.txt: .FORCE
git ls-tree -r --name-only HEAD | grep '^\(test\|data\)\/' | sort > $@
-.PHONY: .FORCE deps quick full haddock install clean test bench changes_github dist prof download_stats reformat lint weigh doc/lua-filters.md pandoc-templates trypandoc update-website debpkg checkdocs ghcid ghci fix_spacing hlint check check-cabal
+.PHONY: .FORCE deps quick full haddock install clean test bench changes_github dist prof download_stats reformat lint weigh doc/lua-filters.md pandoc-templates trypandoc update-website debpkg checkdocs ghcid ghci fix_spacing hlint check check-cabal check
diff --git a/RELEASE-CHECKLIST b/RELEASE-CHECKLIST
index 1e42c0f3e..fcfe2d751 100644
--- a/RELEASE-CHECKLIST
+++ b/RELEASE-CHECKLIST
@@ -1,4 +1,4 @@
-[ ] use 'policeman' to check API changes and version update
+[ ] make check
[ ] make README.md and commit if needed
[ ] make man/pandoc.1 and commit if needed
[ ] Finalize changelog