diff --git a/Makefile b/Makefile index 93b4365..6219a3e 100644 --- a/Makefile +++ b/Makefile @@ -4,8 +4,8 @@ GITFLAGS= DOXYGEN=doxygen DOXYGENFLAGS= -.PHONEY: api-docs src/version.h -all: README.md src/version.h bin/tidy quickref.html api-docs +.PHONEY: api-docs +all: README.md bin/tidy quickref.html bin/tidy: $(MAKE) -C build/gmake @@ -14,8 +14,10 @@ bin/tidy: README.md: README.html $(HTML2MARKDOWN) $(HTML2MARKDOWNFLAGS) $< > $@ -src/version.h: +src/version.h: .FORCE $(GIT) $(GITFLAGS) log --pretty=format:'static const char TY_(release_date)[] = "https://github.com/w3c/tidy-html5/tree/%h";' -n 1 > $@ +.FORCE: +# dummy target to force the src/version.h file to always get remade quickref.html: htmldoc/quickref.html cp $< $@ @@ -26,6 +28,8 @@ api-docs: install: sudo $(MAKE) install -C build/gmake +version: all src/version.h + clean: $(MAKE) clean -C build/gmake $(RM) README.md diff --git a/htmldoc/quickref-html.xsl b/htmldoc/quickref-html.xsl index f052132..1379262 100644 --- a/htmldoc/quickref-html.xsl +++ b/htmldoc/quickref-html.xsl @@ -38,8 +38,7 @@
Generated automatically with HTML Tidy released
- on
HTML, XHTML, XML
Diagnostics
diff --git a/quickref.html b/quickref.html
index 6aa40aa..6c1b7e4 100644
--- a/quickref.html
+++ b/quickref.html
@@ -8,10 +8,7 @@
- Generated automatically with HTML Tidy released - on https://github.com/w3c/tidy-html5/tree/1c4d43a. -
+Version: https://github.com/w3c/tidy-html5/tree/ccf2a6c
HTML, XHTML, XML
diff --git a/src/version.h b/src/version.h
index 7761732..12debe7 100644
--- a/src/version.h
+++ b/src/version.h
@@ -1 +1 @@
-static const char TY_(release_date)[] = "https://github.com/w3c/tidy-html5/tree/1c4d43a";
\ No newline at end of file
+static const char TY_(release_date)[] = "https://github.com/w3c/tidy-html5/tree/ccf2a6c";
\ No newline at end of file
diff --git a/htmldoc/tidy.css b/tidy.css
similarity index 100%
rename from htmldoc/tidy.css
rename to tidy.css