]> Cypherpunks.ru repositories - cypherpunks-www.git/blobdiff - Makefile
lftp полезен с debug-ом
[cypherpunks-www.git] / Makefile
index 3cc9513de8db4a926b7daf4310f5bad95adf76f7..6c1b35ae04113a98cc996a4e6be8d16c98845d9e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,19 +1,21 @@
-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:
        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)