forked from phpactor/phpactor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (32 loc) · 1.29 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
# 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
SPHINXAUTOBUILD ?= sphinx-autobuild
SOURCEDIR = doc
BUILDDIR = build
.PHONY: help sphinx
build:
mkdir build
composer:
composer install --no-scripts --optimize-autoloader --classmap-authoritative
vimdoc:
docker compose run php vimdoc .
configreference:
./bin/phpactor development:generate-documentation extension > doc/reference/configuration.rst
./bin/phpactor development:generate-documentation rpc > doc/reference/rpc_command.rst
./bin/phpactor development:generate-documentation diagnostic > doc/reference/diagnostic.rst
# Put it first so that "make" without argument is like "make help".
help:
docker compose run php $(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
sphinxwatch:
docker compose run php $(SPHINXAUTOBUILD) "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
sphinx:
docker compose run php $(SPHINXBUILD) -M html "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
sphinxlatex:
docker compose run php $(SPHINXBUILD) -M latex "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
docs: composer configreference vimdoc sphinx
clean:
rm -Rf build