Add check and check-cabal target ...
to check to make sure everything needed in tests will get into the source sdist.
This commit is contained in:
parent
29e7fef729
commit
c8c8c8b24c
1 changed files with 14 additions and 2 deletions
16
Makefile
16
Makefile
|
@ -65,7 +65,9 @@ dist: man/pandoc.1
|
||||||
cd pandoc-${version}
|
cd pandoc-${version}
|
||||||
stack setup && stack test && cd .. && rm -rf "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
|
! grep -n -e "\t" MANUAL.txt changelog
|
||||||
|
|
||||||
debpkg: man/pandoc.1
|
debpkg: man/pandoc.1
|
||||||
|
@ -112,4 +114,14 @@ update-website:
|
||||||
clean:
|
clean:
|
||||||
stack 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
|
||||||
|
|
Loading…
Add table
Reference in a new issue