]> Cypherpunks.ru repositories - cypherpunks-www.git/blobdiff - Makefile
Обновить список того что сзеркалировано
[cypherpunks-www.git] / Makefile
index 3cc9513de8db4a926b7daf4310f5bad95adf76f7..21ff7c0c4daa6ee5989ce7760704f45413aa9654 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,19 +1,25 @@
-include Makefile.private
+include private.mk
 
 .PHONY: static
 
+all: clean html static
+
 clean:
        rm -rf out.html
 
 html:
-       makeinfo --html -o out.html index.texi
+       makeinfo --html --css-include=style.css -o out.html index.texi
 
 static:
        cd static ; tar cf - . | tar xfC - ../out.html
 
-all: clean html static
+update: update-remote update-hosting
+
+update-remote:
+       rsync -rv --progress --delete out.html/ lighttpd@gw.stargrave.org:www.cypherpunks.ru
 
-update:
-       rsync -av --progress --delete out.html/ gw.stargrave.org:cypherpunks
+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)
+       echo "mirror --delete --reverse out.html/govpn govpn.info/docs" | \
+               lftp -d -u $(FTP_MIRROR_LOGIN),$(FTP_MIRROR_PASSWORD) $(FTP_MIRROR_HOST)