File: Makefile

package info (click to toggle)
xraydb 4.5.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 50,668 kB
  • sloc: python: 3,317; makefile: 75; sh: 18
file content (35 lines) | stat: -rw-r--r-- 599 bytes parent folder | download | duplicates (2)
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
# Makefile for Sphinx documentation
#
SPHINXBUILD = sphinx-build
PAPER       = letter
BUILDDIR    = _build
BIBFILE     = xraydb.bib

.PHONY: html all epub latex pdf clean

html: bib
	$(SPHINXBUILD) -a . $(BUILDDIR)/html

epub:
	$(SPHINXBUILD) -a -b epub . $(BUILDDIR)/html

bib:
	touch $(BIBFILE)

all: html pdf

latex: bib
	$(SPHINXBUILD) -a -b latex . $(BUILDDIR)/latex

pdf: latex
	cd $(BUILDDIR)/latex && make all-pdf
	cp -pr $(BUILDDIR)/latex/xraydb.pdf $(BUILDDIR)/html/xraydb.pdf

clean:
	-rm -rf $(BUILDDIR)/*

tarball: html pdf
	cd $(BUILDDIR)/html
	tar cvzf ../../../_doc.tgz *
	cd ../..