]> Sergey Matveev's repositories - public-inbox.git/commitdiff
doc: use ".html" instead of ".txt.html" for website
authorEric Wong <e@80x24.org>
Sat, 26 Dec 2015 22:00:07 +0000 (22:00 +0000)
committerEric Wong <e@80x24.org>
Sat, 26 Dec 2015 23:00:24 +0000 (23:00 +0000)
Shorter URLs are easier to read, remember, and more efficient.

Documentation/include.mk

index 55bfc97a784e0ae83ce705275ee02f3edcccfb94..43336c210dca72bba839f9710458ebc0c62668de 100644 (file)
@@ -42,12 +42,14 @@ install-man: man
 txt2pre = ./Documentation/txt2pre < $< > $@+ && touch -r $< $@+ && mv $@+ $@
 txt := INSTALL README COPYING
 dtxt :=  design_notes.txt design_www.txt dc-dlvr-spam-flow.txt
-txt += $(addprefix Documentation/, $(dtxt))
+dtxt := $(addprefix Documentation/, $(dtxt))
 
+%.html: %.txt
+       $(txt2pre)
 %.html: %
        $(txt2pre)
 
-docs_html := $(addsuffix .html, $(txt))
+docs_html := $(addsuffix .html, $(subst .txt,,$(dtxt)) $(txt))
 html: $(docs_html)
 gz_docs := $(addsuffix .gz, $(docs) $(docs_html))
 rsync_docs := $(gz_docs) $(docs) $(txt) $(docs_html)