changeset 153:cf24633b8de7

Set up simple distribution rules.
author Bryan O'Sullivan <bos@serpentine.com>
date Mon, 12 Mar 2007 21:10:19 -0700
parents 44f233544e9e
children e7f48702d409
files en/Makefile
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/en/Makefile	Thu Mar 08 23:35:57 2007 -0800
+++ b/en/Makefile	Mon Mar 12 21:10:19 2007 -0700
@@ -169,9 +169,18 @@
 	echo -n $(hg_id) > build_id.tex
 
 clean:
-	rm -rf html pdf \
+	rm -rf dist html pdf \
 		$(image-dot:%.dot=%.pdf) \
 		$(image-dot:%.dot=%.png) \
 		$(image-svg:%.svg=%.pdf) \
 		$(image-svg:%.svg=%.png) \
 		examples/*.{lxo,run} examples/.run build_id.tex
+
+install: pdf split
+	rm -rf dist
+	mkdir -p dist
+	cp pdf/hgbook.pdf dist
+	cp html/split/*.{css,html,png} dist
+
+rsync: install
+	rsync -avz --delete dist sp.red-bean.com:public_html/hgbook