/
Makefile
51 lines (39 loc) · 1.34 KB
/
Makefile
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Minimal makefile for Sphinx documentation
#
# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?=
SPHINXBUILD ?= python3 -msphinx
SOURCEDIR = .
BUILDDIR = _build
LANG = en_US.UTF-8
SPHINXSERV ?= sphinx-autobuild
MAKE = make
default: html
view:
xdg-open "$(BUILDDIR)/html/index.html"
serve:
$(SPHINXSERV) --no-initial $(SOURCEDIR) $(BUILDDIR)/html
commit:
git commit -m "$(shell date +'%Y-%m-%d %H:%M')"
git push
commit-skip-recentupdate:
git commit -m "[skip-recentupdate] $(shell date +'%Y-%m-%d %H:%M')"
git push
commit-skip-build:
git commit -m "[skip ci] $(shell date +'%Y-%m-%d %H:%M')"
git push
pull:
git fetch origin master
git merge origin/master
# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
.PHONY: default view help serve commit Makefile snippet
# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
# Snippet builder: https://sphinx.silverrainz.me/snippet/, for shell completion.
snippet:
@$(SPHINXBUILD) -M snippet "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)