⌈⌋ ⎇ branch:  Bitrhythm


Hex Artifact Content

Artifact 7b47f3af71962d22469eb325f5da540d1b0c1c3aa9a02c3e7284875dca3ad705:

  • File source/Makefile — part of check-in [12a9bb700d] at 2021-08-11 18:56:04 on branch trunk — Import from git Added a changelog (user: dev size: 634)

0000: 23 20 4d 69 6e 69 6d 61 6c 20 6d 61 6b 65 66 69  # Minimal makefi
0010: 6c 65 20 66 6f 72 20 53 70 68 69 6e 78 20 64 6f  le for Sphinx do
0020: 63 75 6d 65 6e 74 61 74 69 6f 6e 0a 23 0a 0a 23  cumentation.#..#
0030: 20 59 6f 75 20 63 61 6e 20 73 65 74 20 74 68 65   You can set the
0040: 73 65 20 76 61 72 69 61 62 6c 65 73 20 66 72 6f  se variables fro
0050: 6d 20 74 68 65 20 63 6f 6d 6d 61 6e 64 20 6c 69  m the command li
0060: 6e 65 2c 20 61 6e 64 20 61 6c 73 6f 0a 23 20 66  ne, and also.# f
0070: 72 6f 6d 20 74 68 65 20 65 6e 76 69 72 6f 6e 6d  rom the environm
0080: 65 6e 74 20 66 6f 72 20 74 68 65 20 66 69 72 73  ent for the firs
0090: 74 20 74 77 6f 2e 0a 53 50 48 49 4e 58 4f 50 54  t two..SPHINXOPT
00a0: 53 20 20 20 20 3f 3d 0a 53 50 48 49 4e 58 42 55  S    ?=.SPHINXBU
00b0: 49 4c 44 20 20 20 3f 3d 20 73 70 68 69 6e 78 2d  ILD   ?= sphinx-
00c0: 62 75 69 6c 64 0a 53 4f 55 52 43 45 44 49 52 20  build.SOURCEDIR 
00d0: 20 20 20 20 3d 20 2e 0a 42 55 49 4c 44 44 49 52      = ..BUILDDIR
00e0: 20 20 20 20 20 20 3d 20 5f 62 75 69 6c 64 0a 0a        = _build..
00f0: 23 20 50 75 74 20 69 74 20 66 69 72 73 74 20 73  # Put it first s
0100: 6f 20 74 68 61 74 20 22 6d 61 6b 65 22 20 77 69  o that "make" wi
0110: 74 68 6f 75 74 20 61 72 67 75 6d 65 6e 74 20 69  thout argument i
0120: 73 20 6c 69 6b 65 20 22 6d 61 6b 65 20 68 65 6c  s like "make hel
0130: 70 22 2e 0a 68 65 6c 70 3a 0a 09 40 24 28 53 50  p"..help:..@$(SP
0140: 48 49 4e 58 42 55 49 4c 44 29 20 2d 4d 20 68 65  HINXBUILD) -M he
0150: 6c 70 20 22 24 28 53 4f 55 52 43 45 44 49 52 29  lp "$(SOURCEDIR)
0160: 22 20 22 24 28 42 55 49 4c 44 44 49 52 29 22 20  " "$(BUILDDIR)" 
0170: 24 28 53 50 48 49 4e 58 4f 50 54 53 29 20 24 28  $(SPHINXOPTS) $(
0180: 4f 29 0a 0a 2e 50 48 4f 4e 59 3a 20 68 65 6c 70  O)...PHONY: help
0190: 20 4d 61 6b 65 66 69 6c 65 0a 0a 23 20 43 61 74   Makefile..# Cat
01a0: 63 68 2d 61 6c 6c 20 74 61 72 67 65 74 3a 20 72  ch-all target: r
01b0: 6f 75 74 65 20 61 6c 6c 20 75 6e 6b 6e 6f 77 6e  oute all unknown
01c0: 20 74 61 72 67 65 74 73 20 74 6f 20 53 70 68 69   targets to Sphi
01d0: 6e 78 20 75 73 69 6e 67 20 74 68 65 20 6e 65 77  nx using the new
01e0: 0a 23 20 22 6d 61 6b 65 20 6d 6f 64 65 22 20 6f  .# "make mode" o
01f0: 70 74 69 6f 6e 2e 20 20 24 28 4f 29 20 69 73 20  ption.  $(O) is 
0200: 6d 65 61 6e 74 20 61 73 20 61 20 73 68 6f 72 74  meant as a short
0210: 63 75 74 20 66 6f 72 20 24 28 53 50 48 49 4e 58  cut for $(SPHINX
0220: 4f 50 54 53 29 2e 0a 25 3a 20 4d 61 6b 65 66 69  OPTS)..%: Makefi
0230: 6c 65 0a 09 40 24 28 53 50 48 49 4e 58 42 55 49  le..@$(SPHINXBUI
0240: 4c 44 29 20 2d 4d 20 24 40 20 22 24 28 53 4f 55  LD) -M $@ "$(SOU
0250: 52 43 45 44 49 52 29 22 20 22 24 28 42 55 49 4c  RCEDIR)" "$(BUIL
0260: 44 44 49 52 29 22 20 24 28 53 50 48 49 4e 58 4f  DDIR)" $(SPHINXO
0270: 50 54 53 29 20 24 28 4f 29 0a                    PTS) $(O).