File: Makefile

package info (click to toggle)
pgxnclient 1.3.2-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 672 kB
  • sloc: python: 3,545; sh: 71; makefile: 53
file content (34 lines) | stat: -rw-r--r-- 736 bytes parent folder | download | duplicates (3)
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
# PGXN Client -- documentation makefile
#
# Building docs requires virtualenv already installed in the system.
#
# Use'make html' to build the HTML documentation.
#
# Copyright (C) 2011-2021 Daniele Varrazzo

PYTHON := python
ENV_DIR = $(shell pwd)/env
ENV_BIN = $(ENV_DIR)/bin

SPHINXOPTS    =
SPHINXBUILD   = $(ENV_BIN)/sphinx-build
PAPER         =
BUILDDIR      = .

.PHONY: env clean html

default: html

html: env
	$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) \
		. $(BUILDDIR)/html

# The environment is currently required to build the documentation.
# It is not clean by 'make clean'
env:
	[ -d "$(ENV_DIR)" ] || ( \
		virtualenv -p "$(PYTHON)" "$(ENV_DIR)" \
		&& "$(ENV_BIN)/pip" install -r requirements.txt)

clean:
	$(RM) -r html