about summary refs log tree commit homepage
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index da73a5d..879f68b 100644
--- a/Makefile
+++ b/Makefile
@@ -77,4 +77,13 @@ index.html INSTALL.html:
         $(pandoc_html) -T "$(title)" < $< > $@+
         mv $@+ $@
 
+txt := $(addsuffix .1.txt,$(PCU_BIN))
+www: index.html INSTALL.html INSTALL README $(man1) $(html) $(txt)
+        mkdir -p public_html/
+        install -m 644 $^ public_html/
+        cd public_html && for i in $^; do \
+          gzip -9 < $$i > $$i.gz; \
+          touch -r $$i.gz $$i; \
+          done
+
 .PHONY: .FORCE-GIT-VERSION-FILE install install-man man