2 # There are four ways this Makefile can be called:
5 # 1. As a subdirectory from the toplevel, for automake
7 # 2. A wrapper around the kernel's makefile when building modules, to
8 # possibly override the .config file
10 # 3. At configure time, as the toplevel module dir for building
13 # 4. At configure time, to determine the kernel's idea of $(ARCH)
18 ifeq ($(LUSTRE_LINUX_CONFIG),)
26 # Note that this comes from make -C $LINUX -f $LUSTRE/build/Makefile
27 # so "include Makefile" below includes $LINUX/Makefile, not this file
28 include $(LUSTRE_LINUX_CONFIG)
31 endif # LUSTRE_LINUX_CONFIG
37 ifneq ($(LUSTRE_KERNEL_TEST),)
38 extra-y = $(LUSTRE_KERNEL_TEST)
48 echo $(ARCH) >$(ARCHFILE)
50 TESTS := $(wildcard commit.*)
52 SHELL="$(SHELL)" $(SHELL) test-commit-msg.sh $(TESTS)