forked from mongodb/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
44 lines (37 loc) · 1.81 KB
/
makefile
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
36
37
38
39
40
41
42
43
44
MAKEFLAGS += -j -r --no-print-directory
############ path and build-meta configuration ##############
# The paths generated in makefile.meta will override the follwoing
# values, but we need to set the values once here to properly
# bootstrap the build system.
output = build
build-tools = bin
tools = $(output)/docs-tools
noop:
bootstrap fabfile build/docs-tools:
@python bootstrap.py
@echo "[bootstrap]: configured build environment."
help:
@echo "Use 'make <target>', where <target> is a Sphinx target (e.g. 'html', 'latex')"
@echo "See 'http://docs.mongodb.org/manual/meta' for more information."
-include $(output)/makefile.meta
############# Meta targets that control the build and publication process. #############
.PHONY: setup source/about.txt $(public-branch-output)/release.txt source/includes/hash.rst
setup:source/includes/hash.rst meta.yaml intersphinx.yaml pdfs.yaml
@mkdir -p $(public-branch-output) $(public-output)
@echo [build]: created $(public-branch-output) and $(public-output)
source/includes/hash.rst:
@fab generate.buildinfo_hash
$(public-branch-output)/release.txt:$(public-branch-output)
@echo $(last-commit) >|$@
@echo [build]: generated '$@' with current release hash.
# website display and configuration
$(public-branch-output)/MongoDB-manual-$(current-branch).tar.gz:html
@echo $(last-commit) >| $(branch-output)/$</release.txt
@$(TARBIN) -C $(branch-output)/ --transform=s/html/MongoDB-manual-$(current-branch)/ \
-czf $@ ./$<
@echo "[html.tar.gz]: tarball of html build complete."
############# General purpose targets. Not used (directly) in the production build #############
tags:
@etags -I --language=none --regex=@bin/etags.regexp `find source -name "*.txt" | grep -v "\.#"`
@sed $(SED_ARGS_FILE) 's/\.\. (.*):: \$$*(.*)/\1.\2/' TAGS
@echo "[dev]: etags generation complete."