Index: lit/ChangeLog
===================================================================
--- lit/ChangeLog	(revision 716)
+++ lit/ChangeLog	(working copy)
@@ -1,3 +1,7 @@
+2020-06-02  Vincent Belaïche  <vincent.belaiche@gmail.com>
+
+	* Makefile: Add rule to generate tex4ht-dir.tex
+
 2020-05-31  Vincent_Bela\"iche  <vincent.belaiche@gmail.com>
 
 	* tex4ht-dir.m4: new file, used to generate with m4:
Index: lit/Makefile
===================================================================
--- lit/Makefile	(revision 716)
+++ lit/Makefile	(working copy)
@@ -20,7 +20,10 @@
 texmf_t4ht_bin = texmf/tex4ht/bin
 # List of directories we'll substitute into tex4ht-dir.tex below:
 dirs = homedir wd htmldir xtpipesdir deriveddir texmf_t4ht_bin
+texmf_t4ht_bin = texmf/tex4ht/bin
 
+dirs = homedir wd htmldir xtpipesdir deriveddir texmf_t4ht_bin
+
 tex_opts = --interaction=nonstopmode -recorder #--file-line-error
 tex_1opt = "$(tex_opts)" # must be quoted, passing to shell script
 dev_null = </dev/null    # when we don't call tex directly.
@@ -750,3 +753,7 @@
 	echo $$f && mkdir -p $(deriveddir)/$${f%.*} \
 	&& awk -v outdir=$(deriveddir)/$${f%.*} '{system("[ -f "$$0" ] &&  mv -f " $$0" "outdir)}' $$f ; \
 done
+
+tex4ht-dir.tex: tex4ht-dir.m4
+	m4 $(foreach dir,$(dirs),-D $(dir)="$($(dir))") $< > $@
+
