+# Convert MSYS-style /x/foo file name into x:/foo that Windows can grok.
+msys_to_w32=sed -e 's,^/\([A-Za-z]\)/,\1:/,'
+
+# The w32 build needs a slightly different editing, and it uses
+# nt/epaths.nt as the template.
+epaths-force-w32: FRC
+ @(w32srcdir=`echo "${srcdir}" | ${msys_to_w32}` ; \
+ sed < ${srcdir}/nt/epaths.nt > epaths.h.$$$$ \
+ -e '/^.*#/s/@VER@/${version}/g' \
+ -e '/^.*#/s/@CFG@/${configuration}/g' \
+ -e "/^.*#/s|@SRC@|$${w32srcdir}|g") && \
+ ${srcdir}/build-aux/move-if-change epaths.h.$$$$ src/epaths.h
+
+lib-src src: $(NTDIR) lib