-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)