-# the handles dir doesn't apply to windows
-if ! PLATFORM_WIN32
-HANDLES = handles
+if CROSS_COMPILING
+SUBDIRS = utils io-layer cil metadata arch $(interpreter_dir) mini dis
+else
+if MOONLIGHT
+SUBDIRS = utils io-layer metadata arch $(interpreter_dir) mini
+else
+SUBDIRS = utils io-layer cil metadata arch $(interpreter_dir) mini dis monograph tests benchmark profiler
endif
-
-SUBDIRS = utils io-layer monoburg os cil metadata \
- arch interpreter mini dis monograph tests benchmark $(HANDLES) profiler
+endif
+DIST_SUBDIRS = utils io-layer cil metadata arch interpreter mini dis monograph tests benchmark profiler