--- /dev/null
+include ../JM.rules
+
+all: build-guide
+
+build-guide:
+ bash -x build-jm-guide.sh html
+
+_build/html/index.html: build-guide
+
+clean:
+ bash -x build-jm-guide.sh clean
+
+install: _build/html/index.html
+ rsync -av --delete _build/html/ $(WWWROOT)/guide
--- /dev/null
+#!/bin/bash
+
+JMHOME=${JMHOME:-/home/groups/l/li/linuxjm}
+VENV=$JMHOME/venv
+JM_GIT=$HOME/jm
+
+LOCAL_PIP_BASE=$HOME/.local
+GET_PIP_URL=https://raw.github.com/pypa/pip/master/contrib/get-pip.py
+
+if [ ! -f $LOCAL_PIP_BASE/bin/pip ]; then
+ wget $GET_PIP_URL
+ python get-pip.py --user
+ rm -f get-pip.py
+fi
+if [ ! -f $LOCAL_PIP_BASE/bin/virtualenv ]; then
+ $LOCAL_PIP_BASE/bin/pip install --user virtualenv
+fi
+if [ ! -d $VENV ]; then
+ $LOCAL_PIP_BASE/bin/virtualenv $VENV
+fi
+
+. $VENV/bin/activate
+pip install sphinx sphinx-bootstrap-theme
+make $*