-ifeq (@MODULES_TRUE@,)
-
subdir-m += libcfs
-ifeq (@CRAY_PORTALS_FALSE@,)
-subdir-m += portals
-subdir-m += knals
-subdir-m += router
-subdir-m += tests
-endif # CRAY_PORTALS_FALSE
-endif # MODULES
+cray-subdirs += portals
+cray-subdirs += knals
+cray-subdirs += router
+cray-subdirs += tests
+@CRAY_PORTALS_FALSE@subdir-m += $(cray-subdirs)
@INCLUDE_RULES@
-ifeq (@MODULES_TRUE@,)
-
@BUILD_GMNAL_TRUE@subdir-m += gmnal
@BUILD_IBNAL_TRUE@subdir-m += ibnal
@BUILD_QSWNAL_TRUE@subdir-m += qswnal
@BUILD_SCIMACNAL_TRUE@subdir-m += scimacnal
subdir-m += socknal
-endif # MODULES_TRUE
-
@INCLUDE_RULES@
-ifeq (@MODULES_TRUE@,)
-
subdir-m += portals
@LDISKFS_TRUE@subdir-m += ldiskfs
@SNAPFS_TRUE@subdir-m += snapfs
@SMFS_TRUE@subdir-m += smfs
-endif # MODULES_TRUE
-
@INCLUDE_RULES@
-ifeq (@MODULES_TRUE@,)
-
subdir-m += libcfs
-ifeq (@CRAY_PORTALS_FALSE@,)
-subdir-m += portals
-subdir-m += knals
-subdir-m += router
-subdir-m += tests
-endif # CRAY_PORTALS_FALSE
-endif # MODULES
+cray-subdirs += portals
+cray-subdirs += knals
+cray-subdirs += router
+cray-subdirs += tests
+@CRAY_PORTALS_FALSE@subdir-m += $(cray-subdirs)
@INCLUDE_RULES@
-ifeq (@MODULES_TRUE@,)
-
@BUILD_GMNAL_TRUE@subdir-m += gmnal
@BUILD_IBNAL_TRUE@subdir-m += ibnal
@BUILD_QSWNAL_TRUE@subdir-m += qswnal
@BUILD_SCIMACNAL_TRUE@subdir-m += scimacnal
subdir-m += socknal
-endif # MODULES_TRUE
-
@INCLUDE_RULES@