+++ /dev/null
-.PHONY: static
-
-all: clean html static
-
-clean:
- rm -rf cryptoparty.html
-
-CSS != cat style.css
-
-html:
- makeinfo --html \
- --set-customization-variable CSS_LINES='$(CSS)' \
- --set-customization-variable SHOW_TITLE=0 \
- --set-customization-variable USE_ACCESSKEY=0 \
- --set-customization-variable DATE_IN_HEADER=1 \
- --set-customization-variable TOP_NODE_UP_URL=index.html \
- --set-customization-variable CLOSE_QUOTE_SYMBOL=\" \
- --set-customization-variable OPEN_QUOTE_SYMBOL=\" \
- -o cryptoparty.html index.texi
-
-static:
- cd static ; tar cf - . | tar xfC - ../cryptoparty.html
- cp -f logo.png cryptoparty.html
--- /dev/null
+html=cryptoparty.html
+rm -f $html/*.html
+${MAKEINFO:-makeinfo} --html \
+ --set-customization-variable EXTRA_HEAD='<link rev="made" href="mailto:webmaster@cryptoparty.ru">' \
+ --set-customization-variable CSS_LINES="`cat style.css`" \
+ --set-customization-variable SHOW_TITLE=0 \
+ --set-customization-variable USE_ACCESSKEY=0 \
+ --set-customization-variable DATE_IN_HEADER=1 \
+ --set-customization-variable TOP_NODE_UP_URL=index.html \
+ --set-customization-variable CLOSE_QUOTE_SYMBOL=\" \
+ --set-customization-variable OPEN_QUOTE_SYMBOL=\" \
+ -o $html index.texi
+( cd static ; tar cf - . | tar xfC - ../$html )
+cp -f logo.png $html/
+find $html -type d -exec chmod 755 {} \;
+find $html -type f -exec chmod 644 {} \;