1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
# Change this to whatever lisp you'r using
LISP=sbcl
EVAL=--eval
QUIT=(sb-ext:quit)
SYSTEM=ARNESI
docs: pdf html
html:
mkdir -p html/
${LISP} ${EVAL} "(asdf:oos 'asdf:load-op :qbook)" \
${EVAL} "(asdf:oos 'asdf:load-op :${SYSTEM})" \
${EVAL} "(asdf:oos 'qbook:publish-op :${SYSTEM} \
:generator (make-instance 'qbook:html-generator \
:output-directory \"./html/\" \
:title \"${SYSTEM}\"))" \
${EVAL} "${QUIT}"
pdf:
mkdir -p pdf/
${LISP} ${EVAL} "(asdf:oos 'asdf:load-op :qbook)" \
${EVAL} "(asdf:oos 'asdf:load-op :${SYSTEM})" \
${EVAL} "(asdf:oos 'qbook:publish-op :${SYSTEM} \
:generator (make-instance 'qbook:latex-generator \
:output-file \"./pdf/${SYSTEM}.tex\" \
:title \"${SYSTEM}\"))" \
${EVAL} "${QUIT}"
(cd pdf && pdflatex ${SYSTEM}.tex)
(cd pdf && pdflatex ${SYSTEM}.tex)
rm pdf/${SYSTEM}.aux pdf/${SYSTEM}.log pdf/${SYSTEM}.toc pdf/${SYSTEM}.tex
|