+removenullpaths=sed -e 's/^://g' -e 's/:$$//g' -e 's/::/:/g'
+
+# Note that sed is not in /bin on 386bsd.
+src/paths.h: Makefile ${srcdir}/src/paths.h.in
+ @echo "Producing \`src/paths.h' from \`src/paths.h.in'."
+ @(lisppath=`echo ${lisppath} | ${removenullpaths}` ; \
+ buildlisppath=`echo ${buildlisppath} | ${removenullpaths}` ; \
+ sed < ${srcdir}/src/paths.h.in > paths.h.tmp$$$$ \
+ -e 's;\(#.*PATH_LOADSEARCH\).*$$;\1 "'$${lisppath}'";' \
+ -e 's;\(#.*PATH_DUMPLOADSEARCH\).*$$;\1 "'$${buildlisppath}'";' \
+ -e 's;\(#.*PATH_EXEC\).*$$;\1 "${archlibdir}";' \
+ -e 's;\(#.*PATH_INFO\).*$$;\1 "${infodir}";' \
+ -e 's;\(#.*PATH_DATA\).*$$;\1 "${etcdir}";' \
+ -e 's;\(#.*PATH_BITMAPS\).*$$;\1 "${bitmapdir}";' \
+ -e 's;\(#.*PATH_DOC\).*$$;\1 "${docdir}";' \
+ -e 's;\(#.*PATH_LOCK\).*$$;\1 "${lockdir}/";') && \
+ ${srcdir}/move-if-change paths.h.tmp$$$$ src/paths.h