|
20 | 20 | BUILDDIR = $(root-build)
|
21 | 21 | endif
|
22 | 22 |
|
| 23 | +# Helpers to compress the man pages |
| 24 | +UNCOMPRESSED_MAN := $(shell find $(BUILDDIR)/man/ -name "*.1") |
| 25 | +COMPRESSED_MAN := $(subst .1,.1.gz,$(UNCOMPRESSED_MAN)) |
| 26 | + |
23 | 27 | # Internal variables.
|
24 | 28 | PAPEROPT_a4 = -D latex_paper_size=a4
|
25 | 29 | PAPEROPT_letter = -D latex_paper_size=letter
|
@@ -75,19 +79,27 @@ deploy:
|
75 | 79 | sed -i -r 's@(<dt><a href=").*html#@\1./#@' $(publication-output)/$(current-branch)/single/genindex.html
|
76 | 80 | @echo "Running the publication routine..."
|
77 | 81 | git rev-parse --verify HEAD >|$(publication-output)/$(current-branch)/release.txt
|
78 |
| - # $(publication-script) |
79 |
| - @echo "Publication succeessfully deployed." |
| 82 | + @echo "Publication succeessfully deployed to '$(publication-output)'." |
80 | 83 | endif
|
81 | 84 |
|
82 | 85 |
|
83 | 86 | disabled-builds:
|
84 | 87 | @echo make MODE='publish' epub
|
85 | 88 | @echo make MODE='publish' latexpdf
|
86 |
| - @echo cp -R $(BUILDDIR)/epub/MongoDB.epub $(publication-output)/$(current-branch)/MongoDB-manual-$(current-branch).epub |
87 |
| - @echo cp -R $(BUILDDIR)/latex/MongoDB.pdf $(publication-output)/$(current-branch)/MongoDB-manual-$(current-branch).pdf |
| 89 | + @echo cp -R $(BUILDDIR)/epub/MongoDB.epub $(publication-output)/$(current-branch)/MongoDB-Manual-$(current-branch).epub |
| 90 | + @echo cp -R $(BUILDDIR)/latex/MongoDB.pdf $(publication-output)/$(current-branch)/MongoDB-Manual-$(current-branch).pdf |
88 | 91 | @echo
|
89 | 92 | @echo This target did nothing, eventually these procedures will generate epub and latex builds.
|
90 | 93 |
|
| 94 | +# |
| 95 | +# Helpers to build compressed man pages. |
| 96 | +# |
| 97 | + |
| 98 | +build-man: man $(COMPRESSED_MAN) |
| 99 | + |
| 100 | +$(BUILDDIR)/man/%.1.gz:$(BUILDDIR)/man/%.1 |
| 101 | + gzip $< -c > $@ |
| 102 | + |
91 | 103 | #
|
92 | 104 | # Clean up/removal targets
|
93 | 105 | #
|
@@ -125,10 +137,11 @@ epub:
|
125 | 137 | @echo
|
126 | 138 | @echo "Build finished. The epub file is in $(BUILDDIR)/epub."
|
127 | 139 |
|
128 |
| -man: |
| 140 | +build-man: |
129 | 141 | $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
|
130 | 142 | @echo
|
131 | 143 | @echo "Build finished. The manual pages are in $(BUILDDIR)/man."
|
| 144 | + @echo |
132 | 145 |
|
133 | 146 | changes:
|
134 | 147 | $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
|
|
0 commit comments