diff options
author | Eric Wong <normalperson@yhbt.net> | 2012-11-28 23:40:25 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2012-11-28 23:40:25 +0000 |
commit | 7c025916b246efb23ae890f339ef7f5a1946c9df (patch) | |
tree | 299afc4121c4203699e0abb654f73385ecc56bf9 | |
parent | d37de0c56bb63733f53587881f95cb41c7a6f08e (diff) | |
download | pcu-7c025916b246efb23ae890f339ef7f5a1946c9df.tar.gz |
Makefile: ghetto generation task for the website
HTML sucks, but this was done when I hated HTML less...
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Makefile | 9 |
2 files changed, 10 insertions, 0 deletions
@@ -5,3 +5,4 @@ GIT-VERSION-FILE *.1 *.html *.gz +public_html @@ -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 |