git.iko.soy/typeable/pandoc
on master help sign in
Add check and check-cabal target ...
c8c8c8bJohn MacFarlane
Makefile+14−2
@@ -65,7 +65,9 @@ dist: man/pandoc.1
65 cd pandoc-${version}
65 cd pandoc-${version}
66 stack setup && stack test && cd .. && rm -rf "pandoc-${version}"
66 stack setup && stack test && cd .. && rm -rf "pandoc-${version}"
67
67
68+check: checkdocs check-cabal
69+
68−checkdocs: README.md
70+checkdocs:
69 ! grep -n -e "\t" MANUAL.txt changelog
71 ! grep -n -e "\t" MANUAL.txt changelog
70
72
71debpkg: man/pandoc.1
73debpkg: man/pandoc.1
@@ -112,4 +114,14 @@ update-website:
112clean:
114clean:
113 stack clean
115 stack clean
114
116
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+
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
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