1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-14 20:22:21 +00:00

doc/C/guides: build the infolib and search DB

This commit is contained in:
Jon Trulson 2021-12-09 11:37:50 -07:00
parent e26c8fb9a4
commit eebb078c19
2 changed files with 27 additions and 9 deletions

View file

@ -12,7 +12,7 @@ CLEANFILES =
# this sets the LANG and HELP_LANG variables
include $(top_srcdir)/programs/localized/templates/C.am
# build guides
# build guide TOCs and deps
include $(top_srcdir)/doc/common/guides/usersGuide.am
include $(top_srcdir)/doc/common/guides/infoUGuide.am
include $(top_srcdir)/doc/common/guides/infoAPGuide.am
@ -22,6 +22,19 @@ include $(top_srcdir)/doc/common/guides/man.am
include $(top_srcdir)/doc/common/guides/builderGuide.am
include $(top_srcdir)/doc/common/guides/dtkshGuide.am
include $(top_srcdir)/doc/common/guides/glossary.am
include $(top_srcdir)/doc/common/guides/i18nGuide.am
include $(top_srcdir)/doc/common/guides/progOview.am
include $(top_srcdir)/doc/common/guides/ttGuide.am
include $(top_srcdir)/doc/common/guides/helpGuide.am
include $(top_srcdir)/doc/common/guides/docbookGuide.am
# build the infolib + search DB
INFOLIBDEPS = $(SGMLDEPS) $(top_srcdir)/doc/common/docbook/docbook.stl
$(INFOLIB)/$(BOOKCASE)/dtsearch/dtsearch.ocf: $(INFOLIBDEPS)
$(MKDIR_P) $(INFOLIB)
$(DGENV) $(DTINFOGEN) build -v -T $(DTINFOGENTMPDIR) $(DTINFOGENOPTIONS) $(DGOPTS) $(SSENTS) -l $(INFOLIB) bookcase.bc
BUILT_SOURCES += $(INFOLIB)/$(BOOKCASE)/dtsearch/dtsearch.ocf
CLEANFILES += $(INFOLIB)/$(BOOKCASE)/dtsearch/dtsearch.ocf

View file

@ -4,26 +4,31 @@ INFOLIB = ../cde.dti
BOOKCASE = CDEDOC
INFOLIBNAME = -n cde
# INFOLIBDESC = -d InfoLibDesc
# INFOLIBDESC must be set in the per-lang guides/Makefile.am (without
# the -d option) prior to including this file.
# orig: INFOLIBDESC = -d InfoLibDesc
SSENTS = -m common/catalog
DGENV = LANG=$(LANG) SGML_SEARCH_PATH=".:.."
DTINFOGENOPTIONS = $(INFOLIBNAME) -d $(INFOLIBDESC)
# Note the triple-dollar sign - this escapes $$ (pid) for the tmp dir
DTINFOGENTMPDIR = /tmp/guides.$$$
# Note the quad-dollar sign - this escapes $$ (pid) for the tmp
# dir. This is required for milti-core builds to work.
DTINFOGENTMPDIR = /tmp/dtinfogen-guides.$$$$
DTHELPSRC = $(top_srcdir)/lib/DtHelp
DTLCXENVSETUP = DTLCXSEARCHPATH=$(DTHELPSRC)
DTINFOGENSRC = $(top_srcdir)/programs/dtinfo/dtinfogen
SGMLDIR = $(top_builddir)/programs/nsgmls
NSGMLS = $(top_builddir)/programs/nsgmls
DTSRDIR = $(top_builddir)/programs/dtsr
DTINFOGEN = $(DTLCXENVSETUP) DTINFO_HOME=$(DTINFOGENSRC) \
DTINFO_BIN=$(DTINFOGENSRC)/install:$(DTINFOGENSRC)/mmdb/StyleSheet:$(DTINFOGENSRC)/mmdb/src:$(SGMLDIR):$(DTSRDIR) \
$(DTINFOGENSRC)/infolib/etc/dtinfogen
SGMLDIR = $(top_srcdir)/programs/dtinfo/dtinfogen/infolib/C/SGML
SGMLDEPS = $(SGMLDIR)/docbook.dtd $(SGMLDIR)/iso-box.gml \
$(SGMLDIR)/iso-dia.gml $(SGMLDIR)/iso-grk3.gml $(SGMLDIR)/iso-lat1.gml \
$(SGMLDIR)/iso-lat2.gml $(SGMLDIR)/iso-num.gml $(SGMLDIR)/iso-pub.gml \
$(SGMLDIR)/iso-tech.gml
DTINFOGEN = $(DTLCXENVSETUP) DTINFO_HOME=$(DTINFOGENSRC) \
DTINFO_BIN=$(DTINFOGENSRC)/install:$(DTINFOGENSRC)/mmdb/StyleSheet:$(DTINFOGENSRC)/mmdb/src:$(NSGMLS):$(DTSRDIR) \
$(DTINFOGENSRC)/infolib/etc/dtinfogen