2018-06-17 11:35:01 -05:00
|
|
|
# Minimal makefile for Sphinx documentation
|
|
|
|
#
|
|
|
|
|
2018-06-17 16:17:46 -05:00
|
|
|
all:
|
|
|
|
@echo 'make deps # will install the dependancies (sphinx)'
|
|
|
|
@echo 'make html # will push the html files to the webserver'
|
|
|
|
@echo 'make build # will build the html docs'
|
|
|
|
|
|
|
|
deps:
|
|
|
|
apt install sphinx-common
|
|
|
|
|
|
|
|
build:
|
|
|
|
make html
|
|
|
|
rsync -Pir _build/html/* r:/var/www/html/usw2/
|
|
|
|
|
|
|
|
# simple & standard git push
|
|
|
|
push:
|
|
|
|
git pull
|
|
|
|
git add --all
|
|
|
|
-git commit -a
|
|
|
|
git push
|
|
|
|
|
2018-06-17 11:35:01 -05:00
|
|
|
# You can set these variables from the command line.
|
|
|
|
SPHINXOPTS =
|
|
|
|
SPHINXBUILD = sphinx-build
|
|
|
|
SPHINXPROJ = usw2
|
|
|
|
SOURCEDIR = .
|
|
|
|
BUILDDIR = _build
|
|
|
|
|
|
|
|
# Put it first so that "make" without argument is like "make help".
|
|
|
|
help:
|
|
|
|
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
|
|
|
|
|
|
|
.PHONY: help Makefile
|
|
|
|
|
|
|
|
# Catch-all target: route all unknown targets to Sphinx using the new
|
|
|
|
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
|
|
|
|
%: Makefile
|
2018-06-17 16:17:46 -05:00
|
|
|
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|