aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2020-12-18 09:18:51 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2020-12-18 09:23:39 -0800
commitc8c8c8b24ce51805795e975e3b143c538d7f1a8e (patch)
treeef1fab80785dfe2310b1d7eefd60a922df364d76 /Makefile
parent29e7fef7298845c1a38f0cef57acb0d740de2e70 (diff)
downloadpandoc-c8c8c8b24ce51805795e975e3b143c538d7f1a8e.tar.gz
Add check and check-cabal target ...
to check to make sure everything needed in tests will get into the source sdist.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 14 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index e82a0e449..4749d2f3f 100644
--- a/Makefile
+++ b/Makefile
@@ -65,7 +65,9 @@ dist: man/pandoc.1
cd pandoc-${version}
stack setup && stack test && cd .. && rm -rf "pandoc-${version}"
-checkdocs: README.md
+check: checkdocs check-cabal
+
+checkdocs:
! grep -n -e "\t" MANUAL.txt changelog
debpkg: man/pandoc.1
@@ -112,4 +114,14 @@ update-website:
clean:
stack clean
-.PHONY: 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-cabal: git-test-files.txt sdist-test-files.txt
+ echo "Checking to see if all committed test files are in sdist..."
+ diff -u $^
+
+sdist-test-files.txt: .FORCE
+ cabal sdist --list-only | sed 's/\.\///' | grep '^test\/' | sort > $@
+
+git-test-files.txt: .FORCE
+ git ls-tree -r --name-only HEAD | grep '^test\/' | 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