]> Cypherpunks.ru repositories - cypherpunks-www.git/blobdiff - Makefile
Чуть больше удобства для генерирования и выкладки сайта
[cypherpunks-www.git] / Makefile
index d5ceac16a23ac8d82460fcf451e43cd498644a25..312f38f06a96ada558e61672a3ab7c1cc358bec5 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,14 @@
 include Makefile.private
 
+html:
+       makeinfo --html -o out.html index.texi
+
 all:
-       makeinfo --html -o cypherpunks.ru.html index.texi
+       rm -rf out.html
+       makeinfo --html -o out.html index.texi
+       cd static ; tar cf - . | tar xfC - ../out.html
 
 update:
-       rsync -av --progress --delete cypherpunks.ru.html/* gw.stargrave.org:cypherpunks/
-       echo "mirror --delete --reverse cypherpunks.ru.html cypherpunks.ru/docs" | \
+       rsync -av --progress --delete out.html/ gw.stargrave.org:cypherpunks
+       echo "mirror --delete --reverse out.html cypherpunks.ru/docs" | \
                lftp -u $(FTP_MIRROR_LOGIN),$(FTP_MIRROR_PASSWORD) $(FTP_MIRROR_HOST)