summaryrefslogtreecommitdiff
path: root/rules/build-package.mk
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2009-08-11 21:25:59 +0000
committerIan Lynagh <igloo@earth.li>2009-08-11 21:25:59 +0000
commitd4f9480c7e7bf8167a97ff964f9d85400398c5c4 (patch)
treef8ed0c1ddc3fe2e3dd9b370e8ff8ab0ce61fb30a /rules/build-package.mk
parent0be79fa683f2caabb7c3a853f1f893e57e4abd34 (diff)
downloadhaskell-d4f9480c7e7bf8167a97ff964f9d85400398c5c4.tar.gz
Check Cabal packages when validating
This checks that hackage would accept the packages. Currently warnings are printed, but don't result in failure.
Diffstat (limited to 'rules/build-package.mk')
-rw-r--r--rules/build-package.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/rules/build-package.mk b/rules/build-package.mk
index 1c15c6fa13..8e813892df 100644
--- a/rules/build-package.mk
+++ b/rules/build-package.mk
@@ -49,6 +49,14 @@ ifneq "$$($1_$2_GROUP)" ""
all_$$($1_$2_GROUP): all_$1_$2
endif
+ifneq "$$(CHECKED_$1)" "YES"
+CHECKED_$1 = YES
+check_packages: check_$1
+.PHONY: check_$1
+check_$1: $$(GHC_CABAL_INPLACE)
+ $$(GHC_CABAL_INPLACE) check $1
+endif
+
distclean : clean_$1_$2_config
maintainer-clean : distclean