From 58dd552fa63b38a4060f7e5001eef666def6d365 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 10 Nov 2011 12:11:24 +0100 Subject: [PATCH] maint: "make distcheck" now runs the root-only tests * Makefile.am (root-check): New overridable variable and rule. (distcheck-hook): Depend on it. --- Makefile.am | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 3a69832..39c1d01 100644 --- a/Makefile.am +++ b/Makefile.am @@ -28,7 +28,15 @@ parted.spec: parted.spec.in mv $@-tmp $@ MAINTAINERCLEANFILES = parted.spec -distcheck-hook: +.PHONY: root-check +root-check: + sudo $(MAKE) check + +# Not everyone who runs "make distcheck" will want to or even +# be able to run the root tests. If you want to skip them, +# run make like this: "make distcheck root-check=" +root-check ?= root-check +distcheck-hook: $(root-check) $(MAKE) my-distcheck ### ABI Checking scripts ### -- 2.11.0