Whamcloud - gitweb
- tagging RC_CURRENT
[fs/lustre-release.git] / lnet / Makefile.am
index 1a223f2..083edfe 100644 (file)
@@ -3,10 +3,39 @@
 # This code is issued under the GNU General Public License.
 # See the file COPYING in this distribution
 
-EXTRA_DIST = Rules.linux archdep.m4 include 
-DIST_SUBDIRS = libcfs portals knals unals utils tests doc router
+EXTRA_DIST = archdep.m4 build.m4 include 
+
+SUBDIRS = portals
+DIST_SUBDIRS =
+
 if LIBLUSTRE
-SUBDIRS = portals unals utils
+SUBDIRS += unals
+else
+DIST_SUBDIRS += unals
+endif
+
+if MODULES
+SUBDIRS += libcfs
+if CRAY_PORTALS
+DIST_SUBDIRS += knals router
+else
+SUBDIRS += knals router
+endif
+SUBDIRS += tests
 else
-SUBDIRS = libcfs portals knals unals utils tests doc router
+DIST_SUBDIRS += libcfs knals router tests
 endif
+
+if DOC
+SUBDIRS += doc
+else
+DIST_SUBDIRS += doc
+endif
+
+if UTILS
+SUBDIRS += utils
+else
+DIST_SUBDIRS += utils
+endif
+
+DIST_SUBDIRS += $(SUBDIRS)