From d5be3d489822cf72fcc491a25b8f1af313435ffc Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 20 Sep 2014 10:18:33 +0000 Subject: Makefile.am: gzip README and associated data Speeds up site loading when combined with things like try_gzip_static in nginx. --- Makefile.am | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index 9fb61cd..a18ea15 100644 --- a/Makefile.am +++ b/Makefile.am @@ -200,9 +200,13 @@ NEWS.atom.xml: configure.ac $(AM_V_GEN)$(RAKE) -sq news_atom > $@.$$$$ && mv $@.$$$$ $@ publish: NEWS.atom.xml NEWS ChangeLog mkdir -p www/ - -git set-file-times - $(INSTALL_DATA) -p $(WWW_DOC) www/ - for i in $$(git ls-files doc/); do $(INSTALL_DATA) -p $$i www/; done +# n.b. git set-file-times is non-standard, but distributed with rsync + -cd $(top_srcdir) && git set-file-times $(WWW_DOC) + $(INSTALL_DATA) -p $(addprefix $(top_srcdir)/,$(WWW_DOC)) www/ + cd www && for i in $(WWW_DOC); do \ + $(GZIP) < $$i > $$i.gz; \ + touch -r $$i $$i.gz; \ + done $(RSYNC) -av www/ $(RSYNC_DEST) .PHONY: publish -- cgit v1.2.3-24-ge0c7