forked from phpactor/phpactor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
48 lines (34 loc) · 1.09 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
# Minimal makefile for Sphinx documentation
#
# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?= -W
SPHINXBUILD ?= sphinx-build
SOURCEDIR = doc
BUILDDIR = build
.PHONY: help sphinx
build:
mkdir build
build/vimdoc:
git clone https://github.com/google/vimdoc build/vimdoc
build/vimdoc/build: build/vimdoc
cd build/vimdoc; python3 setup.py config
cd build/vimdoc; python3 setup.py build
build/bin/vimdoc: build/vimdoc/build
cd build/vimdoc; python3 setup.py install --user
vimdoc: build/bin/vimdoc
vimdoc .
configreference:
./bin/phpactor development:configuration-reference > doc/reference/configuration.rst
# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
sphinxwatch:
@config/bin/watchdocs.sh
sphinx:
@$(SPHINXBUILD) -M html "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
sphinxlatex:
@$(SPHINXBUILD) -M latex "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
docs: configreference sphinx vimdoc
clean:
rm -Rf build