]> Cypherpunks.ru repositories - cypherpunks-www.git/blobdiff - Makefile
Криптопати намечается 2016-04-02
[cypherpunks-www.git] / Makefile
index f5bb34a17453c24a36f302457553291bd71f0e37..6c1b35ae04113a98cc996a4e6be8d16c98845d9e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,21 @@
-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/* 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-remote:
+       rsync -av --progress --delete out.html/ gw.stargrave.org:cypherpunks
+
+update-hosting:
+       echo "mirror --delete --reverse out.html cypherpunks.ru/docs" | \
+               lftp -d -u $(FTP_MIRROR_LOGIN),$(FTP_MIRROR_PASSWORD) $(FTP_MIRROR_HOST)