aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2022-10-04 21:41:00 -0700
committerJohn MacFarlane <[email protected]>2022-10-04 21:48:17 -0700
commit2c37fc55508cd17fb69d7767a1ac2eec13fa2f46 (patch)
treed0492bda74dcd4632a2279bb07fbdf19a67744ea /Makefile
parent96cbd762a1459ae41d479da2babeb06e469f7e53 (diff)
Improve 'make prerelease' (formerly check).
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 4e6e31d23..bb75aafc7 100644
--- a/Makefile
+++ b/Makefile
@@ -44,11 +44,17 @@ quick-stack: ## unoptimized build and tests with stack
--test-arguments='-j4 --hide-successes --ansi-tricks=false $(TESTARGS)'
.PHONY: quick-stack
-check: fix_spacing check-cabal checkdocs ## prerelease checks
+prerelease: README.md fix_spacing check-cabal check-stack checkdocs man uncommitted_changes ## prerelease checks
+.PHONY: prerelease
+
+uncommitted_changes:
+ ! git diff | grep '.'
+.PHONY: uncommitted_changes
+
+check-stack:
stack-lint-extra-deps # check that stack.yaml dependencies are up to date
! grep 'git:' stack.yaml # use only released versions
- ! grep 'git:' cabal.project # use only released versions
-.PHONY: check
+.PHONY: check-stack
check-cabal: git-files.txt sdist-files.txt
@echo "Checking to see if all committed test/data files are in sdist."
@@ -60,6 +66,7 @@ check-cabal: git-files.txt sdist-files.txt
cabal outdated ; \
popd ; \
done
+ ! grep 'git:' cabal.project # use only released versions
.PHONY: check-cabal