3
include $(MODULE_TOPDIR)/include/Make/Dir.make
7
MANDIR = $(GISBASE)/man/man$(SECT)
8
HTMLDIR = $(GISBASE)/docs/html
9
HTML2MAN = GRASS_PERL=${PERL} VERSION_NUMBER=${GRASS_VERSION_NUMBER} sh $(GRASS_HOME)/tools/g.html2man/g.html2man
11
MANPAGES := $(patsubst $(HTMLDIR)/%.html,$(MANDIR)/%.$(SECT),$(wildcard $(HTMLDIR)/*.html))
22
ifneq ($(BROKEN_MAKE),)
23
$(MANDIR)/%.$(SECT): $(HTMLDIR)/%.html $(MANDIR)
25
$(MANDIR)/%.$(SECT): $(HTMLDIR)/%.html | $(MANDIR)
27
$(HTML2MAN) $< $@ $(SECT)
3
include $(MODULE_TOPDIR)/include/Make/Other.make
5
MANPAGES := $(patsubst $(HTMLDIR)/%.html,$(MANDIR)/%.$(MANSECT),$(wildcard $(HTMLDIR)/*.html))
8
$(HTMLDIR)/grassdocs.css \
9
$(HTMLDIR)/grass_logo.png \
10
$(HTMLDIR)/grass_icon.png
24
IDXCATS := $(foreach cat,$(categories),$(lastword $(subst :, ,$(cat))))
26
IDXSRC = full_index index topics keywords $(IDXCATS)
28
INDICES := $(patsubst %,$(HTMLDIR)/%.html,$(IDXSRC))
30
ALL_HTML := $(wildcard $(HTMLDIR)/*.*.html)
32
ifneq (@(type sphinx-build2 > /dev/null),)
33
SPHINXBUILD = sphinx-build2
35
ifneq (@(type sphinx-build > /dev/null),)
36
SPHINXBUILD = sphinx-build
40
@echo "Generating HTML manual pages index (help system)..."
45
# This must be a separate target so that evaluation of $(MANPAGES)
46
# is delayed until the indices have been generated
53
GISBASE="$(RUN_GISBASE)" ARCH="$(ARCH)" ARCH_DISTDIR="$(ARCH_DISTDIR)" \
54
VERSION_NUMBER=$(GRASS_VERSION_NUMBER) VERSION_DATE=$(GRASS_VERSION_DATE) \
55
$(PYTHON) ./build_$(1).py $(2)
59
GISBASE="$(RUN_GISBASE)" ARCH="$(ARCH)" ARCH_DISTDIR="$(ARCH_DISTDIR)" \
60
VERSION_NUMBER=$(GRASS_VERSION_NUMBER) VERSION_DATE=$(GRASS_VERSION_DATE) \
61
$(PYTHON) ./build_topics.py $(HTMLDIR)
65
GISBASE="$(RUN_GISBASE)" ARCH="$(ARCH)" ARCH_DISTDIR="$(ARCH_DISTDIR)" \
66
VERSION_NUMBER=$(GRASS_VERSION_NUMBER) VERSION_DATE=$(GRASS_VERSION_DATE) \
67
$(PYTHON) ./build_keywords.py $(HTMLDIR)
70
$(HTMLDIR)/topics.html: $(ALL_HTML)
74
$(HTMLDIR)/full_index.html: $(ALL_HTML) build_full_index.py build_html.py
75
$(call build,full_index)
78
$(HTMLDIR)/index.html: build_index.py build_html.py
82
$(HTMLDIR)/keywords.html: $(ALL_HTML)
83
$(call build_keywords)
87
$$(HTMLDIR)/$(2).html: $$(wildcard $$(HTMLDIR)/$(1).*.html) build_class.py build_html.py
88
$$(call build,class,$(1) $(2))
92
$(foreach cat,$(categories),$(eval $(call category_rule,$(firstword $(subst :, ,$(cat))),$(lastword $(subst :, ,$(cat))))))
94
$(HTMLDIR)/grassdocs.css: grassdocs.css
97
$(HTMLDIR)/grass_logo.png: grass_logo.png
100
$(HTMLDIR)/grass_icon.png: grass_icon.png
101
$(INSTALL_DATA) $< $@