git.iko.soy/typeable/pandoc
on master help sign in
Add check and check-cabal target ...

to check to make sure everything needed in tests will get into the source sdist.

commitc8c8c8b24ce51805795e975e3b143c538d7f1a8e authorJohn MacFarlane <jgm@berkeley.edu> dateFri 18 Dec 2020, 09:18 (6 years ago) parent29e7fef
1 file changed+14−2
Makefile+14−2
Makefile+14−2
@@ -65,7 +65,9 @@ dist: man/pandoc.1
6565 cd pandoc-${version}
6666 stack setup && stack test && cd .. && rm -rf "pandoc-${version}"
6767
68−checkdocs: README.md
68+check: checkdocs check-cabal
69+
70+checkdocs:
6971 ! grep -n -e "\t" MANUAL.txt changelog
7072
7173debpkg: man/pandoc.1
@@ -112,4 +114,14 @@ update-website:
112114clean:
113115 stack clean
114116
115−.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
117+check-cabal: git-test-files.txt sdist-test-files.txt
118+ echo "Checking to see if all committed test files are in sdist..."
119+ diff -u $^
120+
121+sdist-test-files.txt: .FORCE
122+ cabal sdist --list-only | sed 's/\.\///' | grep '^test\/' | sort > $@
123+
124+git-test-files.txt: .FORCE
125+ git ls-tree -r --name-only HEAD | grep '^test\/' | sort > $@
126+
127+.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