X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=build%2FMakefile;h=0e5c8d41375016c0f024162e51e7626a84992ff3;hb=3ba222d5230cd89713aaf11cf0d8a8bc7ca62107;hp=c0538bdfd24fc298b3d3677deb18a316c5e34762;hpb=bdabc154504122d319828a8b4c34fe74d0a42234;p=fs%2Flustre-release.git diff --git a/build/Makefile b/build/Makefile index c0538bd..0e5c8d4 100644 --- a/build/Makefile +++ b/build/Makefile @@ -1,5 +1,5 @@ # -# There are three ways this Makefile can be called: +# There are four ways this Makefile can be called: # # # 1. As a subdirectory from the toplevel, for automake @@ -10,6 +10,8 @@ # 3. At configure time, as the toplevel module dir for building # kernel tests # +# 4. At configure time, to determine the kernel's idea of $(ARCH) +# ifeq ($(PATCHLEVEL),) @@ -47,3 +49,15 @@ 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