-TOP=..
-include $(TOP)/mk/gen.mk
+#################################################################################
+#
+# glafp-utils/Makefile
+#
+# Main Makefile for project glafp-utils
+#
+#################################################################################
-# We need to boot msub and mkdependC (in that order), to be sure that
-# make depend will succeed in all the other directories.
-
-SUBDIRS = msub mkdependC fastmake lndir ltx mkdirhier runstdtest
+TOP=.
+include $(TOP)/mk/boilerplate.mk
-boot ::
- $(MAKE) -C msub all
- $(MAKE) -C mkdependC all
- $(MAKE) depend
- $(MAKE) all
+# We need to write mkdependC first (in that order), to be sure that
+# make depend will succeed in all the other directories.
+#
+# ToDo: remove msub for good
+#
+SUBDIRS = mkdependC ltx mkdirhier runstdtest sgmlverb docbook
+ifneq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
+SUBDIRS += lndir
+endif
-include $(TOP)/mk/subdir.mk
+include $(TOP)/mk/target.mk