Commits

David Baron committed f68ae7f Draft

Add Makefile to allow regenerating README.html and example.html.

I added this because it was nontrivial for me to figure out how to
regenerate these files as they were.

The dependencies are obviously insufficient, but I still believe it is
useful, at least to document how to regenerate these files as they are.
(I am also somewhat bothered by the way sub and toc interact, and that
the order they run changes things, and that the two generated files were
generated with their interaction in the opposite order.)

This leads to one substantive change in example.html that I could not
suppress: the DOCTYPE is preserved. (Maybe this is an html5lib change?)

I intentionally reverted the update to the date, since there was no
change to the content.

Comments (0)

Files changed (2)

+
+all: README.html example.html
+
+README.html: README.src.html
+	./anolis --enable=xspecxref $< $@
+
+example.html: example.src.html
+	# run sub after toc rather than before it!
+	./anolis --disable=sub --enable=sub $< $@
-<!DOCTYPE html><html lang=en><head>
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html lang=en><head>
 
 <meta content="text/html; charset=utf-8" http-equiv=content-type>
 <title>My Magic Specification</title>