diff --git a/mozilla/htmlparser/makefile.win b/mozilla/htmlparser/makefile.win
index 10105b803b1..087dca21089 100644
--- a/mozilla/htmlparser/makefile.win
+++ b/mozilla/htmlparser/makefile.win
@@ -22,6 +22,7 @@
DEPTH=..
-DIRS = src robot robot\test
+DIRS = src robot robot\test tests
+
include <$(DEPTH)\config\rules.mak>
diff --git a/mozilla/htmlparser/tests/makefile.win b/mozilla/htmlparser/tests/makefile.win
new file mode 100644
index 00000000000..72acd274e1d
--- /dev/null
+++ b/mozilla/htmlparser/tests/makefile.win
@@ -0,0 +1,27 @@
+#!nmake
+#
+# The contents of this file are subject to the Netscape Public
+# License Version 1.1 (the "License"); you may not use this file
+# except in compliance with the License. You may obtain a copy of
+# the License at http://www.mozilla.org/NPL/
+#
+# Software distributed under the License is distributed on an "AS
+# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
+# implied. See the License for the specific language governing
+# rights and limitations under the License.
+#
+# The Original Code is mozilla.org code.
+#
+# The Initial Developer of the Original Code is Netscape
+# Communications Corporation. Portions created by Netscape are
+# Copyright (C) 1998 Netscape Communications Corporation. All
+# Rights Reserved.
+#
+# Contributor(s):
+
+DEPTH=..\..
+
+DIRS = outsinks
+
+
+include <$(DEPTH)\config\rules.mak>
diff --git a/mozilla/parser/htmlparser/makefile.win b/mozilla/parser/htmlparser/makefile.win
index 10105b803b1..087dca21089 100644
--- a/mozilla/parser/htmlparser/makefile.win
+++ b/mozilla/parser/htmlparser/makefile.win
@@ -22,6 +22,7 @@
DEPTH=..
-DIRS = src robot robot\test
+DIRS = src robot robot\test tests
+
include <$(DEPTH)\config\rules.mak>
diff --git a/mozilla/parser/htmlparser/tests/makefile.win b/mozilla/parser/htmlparser/tests/makefile.win
new file mode 100644
index 00000000000..72acd274e1d
--- /dev/null
+++ b/mozilla/parser/htmlparser/tests/makefile.win
@@ -0,0 +1,27 @@
+#!nmake
+#
+# The contents of this file are subject to the Netscape Public
+# License Version 1.1 (the "License"); you may not use this file
+# except in compliance with the License. You may obtain a copy of
+# the License at http://www.mozilla.org/NPL/
+#
+# Software distributed under the License is distributed on an "AS
+# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
+# implied. See the License for the specific language governing
+# rights and limitations under the License.
+#
+# The Original Code is mozilla.org code.
+#
+# The Initial Developer of the Original Code is Netscape
+# Communications Corporation. Portions created by Netscape are
+# Copyright (C) 1998 Netscape Communications Corporation. All
+# Rights Reserved.
+#
+# Contributor(s):
+
+DEPTH=..\..
+
+DIRS = outsinks
+
+
+include <$(DEPTH)\config\rules.mak>