Whamcloud - gitweb
b=22281 refactor packaging and versioning
[fs/lustre-release.git] / build / Makefile
index d13bbb7..11c9c6e 100644 (file)
@@ -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),)
 
@@ -22,7 +24,7 @@ else
 
 # case #2
 # Note that this comes from make -C $LINUX -f $LUSTRE/build/Makefile
-# So the include Makefile includes $LINUX/Makefile, not this file
+# so "include Makefile" below includes $LINUX/Makefile, not this file
 include $(LUSTRE_LINUX_CONFIG)
 include Makefile
 
@@ -47,3 +49,8 @@ include $(TOPDIR)/Rules.make
 endif
 
 endif # PATCHLEVEL
+
+# case 4
+
+echoarch:
+       echo $(ARCH) >$(ARCHFILE)