]> Cypherpunks.ru repositories - cypherpunks-www.git/blobdiff - Makefile
Отличная статья с рекомендациями по анонимному поведению
[cypherpunks-www.git] / Makefile
index 312f38f06a96ada558e61672a3ab7c1cc358bec5..57913ac939a800d0522912457fda331996eb93d4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,23 @@
-include Makefile.private
+include private.mk
 
-html:
-       makeinfo --html -o out.html index.texi
+.PHONY: static
+
+all: clean html static
 
-all:
+clean:
        rm -rf out.html
-       makeinfo --html -o out.html index.texi
+
+html:
+       makeinfo --html --css-include=style.css -o out.html index.texi
+
+static:
        cd static ; tar cf - . | tar xfC - ../out.html
 
-update:
-       rsync -av --progress --delete out.html/ gw.stargrave.org:cypherpunks
+update: update-remote update-hosting
+
+update-remote:
+       rsync -rv --progress --delete out.html/ lighttpd@gw.stargrave.org:www.cypherpunks.ru
+
+update-hosting:
        echo "mirror --delete --reverse out.html cypherpunks.ru/docs" | \
-               lftp -u $(FTP_MIRROR_LOGIN),$(FTP_MIRROR_PASSWORD) $(FTP_MIRROR_HOST)
+               lftp -d -u $(FTP_MIRROR_LOGIN),$(FTP_MIRROR_PASSWORD) $(FTP_MIRROR_HOST)