mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Use the ENABLE_PLANNER macro in the manual too
This introduces ifdef control structures in the manual too, so we can continue to develop both the planner and its manual, until its ready for release. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
57bfa7e353
commit
0bf79e216f
3 changed files with 19 additions and 8 deletions
|
|
@ -15,6 +15,10 @@ A2X = a2x
|
|||
BROWSER = firefox
|
||||
THEME = compact_subsurface
|
||||
PWD = $(realpath .)
|
||||
ENABLE_PLANNER := 0
|
||||
ifeq ($(ENABLE_PLANNER), 1)
|
||||
ENABLE_PLANNER_ATTR=-a ENABLE_PLANNER=$(ENABLE_PLANNER)
|
||||
endif
|
||||
|
||||
all: doc $(addprefix $(DOCNAME).,pdf text)
|
||||
|
||||
|
|
@ -29,11 +33,11 @@ $(OUT)$(DOCNAME).pdf: $(DOCSOURCE)
|
|||
$(OUT)$(HTMLDOC): $(DOCSOURCE)
|
||||
@echo "if asciidoc isn't found the html file included in the sources is copied"
|
||||
$(ASCIIDOC) -a toc -a toclevels=3 -a themedir=$(PWD) -a theme=$(THEME) -a stylesdir=$(PWD) \
|
||||
-o $(OUT)$(HTMLDOC) $< || cp $(HTMLDOC).git $(OUT)$(HTMLDOC)
|
||||
$(ENABLE_PLANNER_ATTR) -o $(OUT)$(HTMLDOC) $< || cp $(HTMLDOC).git $(OUT)$(HTMLDOC)
|
||||
|
||||
# Alternatively::
|
||||
$(OUT)$(DOCNAME).xhtml: $(DOCSOURCE)
|
||||
$(A2X) --icons -f xhtml $<
|
||||
$(A2X) $(ENABLE_PLANNER_ATTR) --icons -f xhtml $<
|
||||
|
||||
show: $(HTMLDOC)
|
||||
$(BROWSER) $<
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue