blob: 4e20876d9678780c3ace42e4886eb744bb0973a4 [file] [log] [blame]
Harald Welte94e87352021-04-02 13:38:00 +02001# Minimal makefile for Sphinx documentation
2#
3
4# You can set these variables from the command line, and also
5# from the environment for the first two.
6SPHINXOPTS ?=
7SPHINXBUILD ?= sphinx-build
8SOURCEDIR = .
9BUILDDIR = _build
10
Harald Weltee4759fd2021-04-11 10:58:30 +020011# for osmo-gsm-manuals
12OSMO_GSM_MANUALS_DIR=$(shell pkg-config osmo-gsm-manuals --variable=osmogsmmanualsdir 2>/dev/null)
13OSMO_REPOSITORY = "pysim"
14UPLOAD_FILES = $(BUILDDIR)/latex/osmopysim-usermanual.pdf
15CLEAN_FILES = $(UPLOAD_FILES)
16
Harald Welte94e87352021-04-02 13:38:00 +020017# Put it first so that "make" without argument is like "make help".
Harald Weltee4759fd2021-04-11 10:58:30 +020018.PHONY: help
Harald Welte94e87352021-04-02 13:38:00 +020019help:
20 @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
21
Harald Weltee4759fd2021-04-11 10:58:30 +020022$(BUILDDIR)/latex/pysim.pdf: latexpdf
23 @/bin/true
24
25# put this before the catch-all below
26include $(OSMO_GSM_MANUALS_DIR)/build/Makefile.common.inc
27
Harald Welte94e87352021-04-02 13:38:00 +020028
29# Catch-all target: route all unknown targets to Sphinx using the new
30# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
Harald Weltee4759fd2021-04-11 10:58:30 +020031%:
Harald Welte94e87352021-04-02 13:38:00 +020032 @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)