]> Cypherpunks.ru repositories - cypherpunks-www.git/blob - Makefile
Более удобный update
[cypherpunks-www.git] / Makefile
1 include private.mk
2
3 .PHONY: static
4
5 all: clean html static
6
7 clean:
8         rm -rf out.html
9
10 html:
11         makeinfo --html --css-include=style.css -o out.html index.texi
12
13 static:
14         cd static ; tar cf - . | tar xfC - ../out.html
15
16 update: update-remote update-hosting
17
18 update-remote:
19         rsync -rv --progress --delete out.html/ lighttpd@gw.stargrave.org:www.cypherpunks.ru
20
21 update-hosting:
22         echo "mirror --delete --reverse out.html cypherpunks.ru/docs" | \
23                 lftp -d -u $(FTP_MIRROR_LOGIN),$(FTP_MIRROR_PASSWORD) $(FTP_MIRROR_HOST)