X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;ds=sidebyside;f=build%2FMakefile;h=da0cda43f2c1069ee2a17f71abdd5b664514e371;hb=592c739ecaece1f854712ede8d4a049c7d249c3a;hp=11c9c6ec622f7ada91842460be81ac2ff46e649b;hpb=b85e9c4dfd29edafbef5cf045b8a839997d15389;p=fs%2Flustre-release.git diff --git a/build/Makefile b/build/Makefile index 11c9c6e..da0cda4 100644 --- a/build/Makefile +++ b/build/Makefile @@ -1,7 +1,7 @@ # # There are four ways this Makefile can be called: # -# +# # 1. As a subdirectory from the toplevel, for automake # # 2. A wrapper around the kernel's makefile when building modules, to @@ -35,22 +35,21 @@ else # PATCHLEVEL # case 3 ifneq ($(LUSTRE_KERNEL_TEST),) -ifeq ($(PATCHLEVEL),4) -all: $(LUSTRE_KERNEL_TEST) -else extra-y = $(LUSTRE_KERNEL_TEST) endif -endif obj-m := conftest.o -ifeq ($(PATCHLEVEL),4) -include $(TOPDIR)/Rules.make -endif - endif # PATCHLEVEL # case 4 echoarch: echo $(ARCH) >$(ARCHFILE) + +TESTS := $(wildcard commit.*) +check-commit: + SHELL="$(SHELL)" $(SHELL) test-commit-msg.sh $(TESTS) + +check: check-commit +.PHONY: check-commit