-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (28 loc) · 814 Bytes
/
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
# Minimal makefile for Sphinx documentation
#
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SPHINXAUTOBUILD = sphinx-autobuild
SPHINXPROJ = CoursPythonCPGE
SOURCEDIR = .
BUILDDIR = _build
SCRIPTSDIR = $(SOURCEDIR)/_scripts
deploy:
make clean &&\
git worktree prune &&\
git worktree add $(BUILDDIR)/html gh-pages &&\
make html &&\
git config user.email "[email protected]" &&\
git config user.name "lgarcin" &&\
cd $(BUILDDIR)/html &&\
git add -A &&\
git commit -a -m "Rebuilt docs" &&\
git push origin gh-pages
# git worktree remove $(BUILDDIR)/html
livehtml:
@$(SPHINXAUTOBUILD) $(SOURCEDIR) $(SPHINXOPTS) $(BUILDDIR)/html
html:
@$(SPHINXBUILD) $(SOURCEDIR) $(BUILDDIR)/html $(SPHINXOPTS)
clean:
rm -rf $(BUILDDIR)/*