-include Makefile.private
+include private.mk
-all:
- makeinfo --html -o cypherpunks.ru.html index.texi
+.PHONY: static
-update:
- rsync -av --progress --delete cypherpunks.ru.html/* gw.stargrave.org:cypherpunks/
- echo "mirror --delete --reverse cypherpunks.ru.html cypherpunks.ru/docs" | \
- lftp -u $(FTP_MIRROR_LOGIN),$(FTP_MIRROR_PASSWORD) $(FTP_MIRROR_HOST)
+all: clean html static
+
+clean:
+ rm -rf out.html
+
+html:
+ makeinfo --html --css-include=style.css -o out.html index.texi
+
+static:
+ cd static ; tar cf - . | tar xfC - ../out.html
+
+update: update-remote update-hosting
+
+update-remote:
+ rsync -rv --progress --delete out.html/ lighttpd@gw.stargrave.org:www.cypherpunks.ru
+
+update-hosting:
+ echo "mirror --delete --reverse out.html cypherpunks.ru/docs" | \
+ lftp -d -u $(FTP_MIRROR_LOGIN),$(FTP_MIRROR_PASSWORD) $(FTP_MIRROR_HOST)