This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
authentic-old/doc/en/Makefile

35 lines
1015 B
Makefile

REST2HTML = rst2html
RST2LATEX = ../scripts/rst2latex.py
PDFLATEX = pdflatex
all: authentic-admin.pdf authentic-admin.html
%.html: %.rst
$(REST2HTML) --stylesheet=default.css --link-stylesheet --language=en $? > $@
figures-no-alpha-stamp:
-rm -rf figures-no-alpha/
mkdir figures-no-alpha/
for F in figures/*.png; do \
../scripts/removealpha.sh $$F figures-no-alpha/`basename $$F`; \
done
touch figures-no-alpha-stamp
%.tex: %.rst figures-no-alpha-stamp
cat $? | sed -e 's/figures\//figures-no-alpha\//' \
-e 's/ ::$$/ : ::/g' \
-e 's/.. section-numbering:://' | $(RST2LATEX) --language=en > $@
%.pdf: %.tex custom.tex
$(PDFLATEX) $?
logfile=`echo "$@" |sed -r "s/(.*)....$$/\\1/"`.log; while [ -f "$$logfile" -a -n "`grep "Rerun to get cross-references right" $$logfile`" ]; do $(PDFLATEX) $< ; done
clean:
-rm -f *.aux *.toc *.log *.out
-rm -f authentic-admin.pdf
-rm -f authentic-admin.tex
-rm -f authentic-admin.html
-rm -rf figures-no-alpha figures-no-alpha-stamp
.PHONY: all clean