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