[tex4ht-commits] [SCM] tex4ht updated: r404 - trunk/lit

karl at gnu.org.ua karl at gnu.org.ua
Sat May 19 00:39:21 CEST 2018


Author: karl
Date: 2018-05-19 01:39:21 +0300 (Sat, 19 May 2018)
New Revision: 404

Modified:
   trunk/lit/ChangeLog
   trunk/lit/Makefile
Log:
test diff of all $(derived), etc.

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2018-05-10 22:43:19 UTC (rev 403)
+++ trunk/lit/ChangeLog	2018-05-18 22:39:21 UTC (rev 404)
@@ -1,3 +1,8 @@
+2018-05-18  Karl Berry  <karl at freefriends.org>
+
+	* Makefile (diff_files): diff all $(derived) as a test;
+	use = when := is not necessary; doc tweaks.
+
 2018-05-09  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-html4.tex (html4.4ht): removed testing snippet, it

Modified: trunk/lit/Makefile
===================================================================
--- trunk/lit/Makefile	2018-05-10 22:43:19 UTC (rev 403)
+++ trunk/lit/Makefile	2018-05-18 22:39:21 UTC (rev 404)
@@ -3,9 +3,9 @@
 # 
 # todo: look for xx below
 
-SHELL := /bin/sh
-extra_bin := ./extra-bin
-ht_bin := ../bin/ht/unix
+SHELL = /bin/sh
+extra_bin = ./extra-bin
+ht_bin = ../bin/ht/unix
 PATH := $(shell echo $$PATH)
 # setting PATH as TeX Live 2016 (DVD) does not ship with 'xhlatex'
 # and look for xmlint/vcss in ./extra-bin
@@ -536,8 +536,8 @@
 # 

 # to compare newly-built files with what's installed.
 diff_files = $(derived) # lots of changes to be figured out ...
-diff_files = $(tex4ht_mathml_derived) $(tex4ht_html_speech_derived) \
-             $(tex4ht_jsml_derived) $(tex4ht_mathltx_derived)
+#diff_files = $(tex4ht_mathml_derived) $(tex4ht_html_speech_derived) \
+#             $(tex4ht_jsml_derived) $(tex4ht_mathltx_derived)
 #texmf = /usr/local/texlive/dev/texmf-dist
 texmf = /r/tug/home/texlive/karl/Master/texmf-dist
 inst_dir_4ht = $(texmf)/tex/generic/tex4ht
@@ -615,19 +615,23 @@
 extra_sources := \
  tex4ht-info.tex
 
+# 

+# Generate *.d (dependency) file. 
 sources_d := $(sources:%.tex=%.d)
 
-## Generate *.d (dependency) file. Trying to mimick automake dependency computation.
-## Automake:
-##   Dependency computation is done at build time, as a side-effect of compilation.
-##   If I understand it right, gcc -MD option generates *.d file(s) (small Makefile)
-##   which are included in main Makefile with 'include' directive.
-## An attemp to mimick automake dependency computation. Generate (small) Makefiles with
-## vars for dependencies and derived files from *.fls.
+# Automake: Dependency computation is done at build time, as a
+# side-effect of compilation. If I understand it right, gcc -MD option
+# generates *.d file(s) (small Makefile) which are included in main
+# Makefile with 'include' directive.
+# 
+# So, here is an attempt to mimic that automake dependency computation.
+# Generate (small) Makefiles with vars for dependencies and derived
+# files from *.fls.
+# 
 %.d: %.fls
 	$(extra_bin)/fls2d $< >$@
 
-## Fonts need to parse *.fls and *.lg files
+# Fonts need to parse *.fls and *.lg files
 tex4ht-fonts-cjk.d: tex4ht-fonts-cjk.lg tex4ht-fonts-cjk.fls
 	$(extra_bin)/flslg2d $^ >$@
 
@@ -644,16 +648,16 @@
 	grep -v  $${f%.*} $$f | awk '/OUTPUT/ { print $$2 }' > $${f%.*}.derived ;  \
 done
 
-## move *.html files to ./htmldir subfolder
-## process lg file
+# move *.html files to ./htmldir subfolder
+# process lg file
 tohtmldir:
 	for f in *.lg ; do \
 	echo Processing $$f && mkdir -p $(htmldir)/$${f%.*} \
 	&& grep "File: $${f%.*}" $$f | awk -v outdir=$(htmldir)/$${f%.*} '{system("[ -f "$$2" ] &&  mv -f " $$2" "outdir)}'  ; \
 done
 
-## move derived files to ./derived.dir
-## process derived files
+# move derived files to ./derived.dir
+# process derived files
 toderiveddir: derived
 	for f in *.derived ; do \
 	echo $$f && mkdir -p $(deriveddir)/$${f%.*} \



More information about the tex4ht-commits mailing list