OSDN Git Service

parted.h: use _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE in VC'd files
[android-x86/external-parted.git] / Makefile.am
index d5a32ef..ae252bd 100644 (file)
@@ -8,7 +8,6 @@ EXTRA_DIST =                            \
   libparted.pc.in                      \
   parted.spec.in                       \
   parted.spec                          \
-  .x-sc_GPL_version                    \
   scripts/data/abi/baseline_symbols.txt \
   scripts/extract_symvers              \
   cfg.mk                               \
@@ -29,7 +28,15 @@ parted.spec: parted.spec.in
        mv $@-tmp $@
 MAINTAINERCLEANFILES = parted.spec
 
-distcheck-hook:
+.PHONY: root-check
+root-check:
+       sudo sh -c '$(MAKE) check; t=$$?; chown -R $(USER) .; exit $$t'
+
+# 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 ###