NAME = documentation
SUBDIRS= tex metadoc bibliography pictures topdocs ntweb
STEPMAKE_TEMPLATES=documentation texinfo
+
README_TOP_FILES=NEWS DEDICATION TODO AIMS
INFO_FILES = $(wildcard $(outdir)/$(package).info*)
EXTRA_DIST_FILES = COPYRIGHT
info: $(outdir)/$(package).info
+local-WWW: copy-for-me
+
+copy-for-me:
+ $(foreach a, $(README_TOP_FILES),cp ../$(a) $(outdir)/$(a).txt && ) true
$(outdir)/%.txt: $(outdir)/%.1
troff -man -Tascii $< | grotty -b -u -o > $@
-
include $(stepdir)/yodl-rules.make
include $(stepdir)/texinfo-rules.make
do-doc: $(OUTTXT_FILES)
-# ugh. FIXME
-ifeq ($(strip $(README_TOP_FILES)),)
-readme-top_FILES-html:
-readme-top_FILES-txt:
-else
-
-readme-top_FILES-txt:
- $(foreach i, $(README_TOP_FILES), \
- cp $(depth)/$(i) $(outdir)/$(i).txt && ) true
-
-readme-top_FILES-html:
- $(foreach i, $(README_TOP_FILES), \
- $(SHELL) $(step-bindir)/text2html.sh $(outdir)/$(i).txt $(outdir)/$(i).html && \
- $(PYTHON) $(step-bindir)/add-html-footer.py --package=$(topdir) --index=$(depth)/../index.html $(outdir)/$(i).html && ) true
-endif
-local-WWW: readme-top_FILES-txt readme-top_FILES-html $(OUTHTML_FILES) $(OUTREADME_HTML_FILES)
+local-WWW: $(OUTHTML_FILES)
echo $^ > $(depth)/wwwlist
doc: do-doc
+
+# what to do here?
+ifeq (a,b)
+
$(outdir)/$(package).info: $(outdir)/topinfo.texinfo $(OUTTEXINFO_FILES)
$(MAKEINFO) --force -o $@ $(outdir)/topinfo.texinfo
-# what to do here?
-ifneq ($(strip $(INFO_FILES)),)
INFOINSTALL=$(MAKE) INSTALLATION_OUT_DIR=$(infodir) depth=$(depth) INSTALLATION_OUT_FILES="$(INFO_FILES)" -f $(stepdir)/install-out.sub.make $@
#
ALL_DOC_FILES = $(POD_FILES) $(TEXINFO_FILES) $(YO_FILES)
OUTTXT_FILES = $(OUTYO_FILES:.yo=.txt) $(OUTIN_FILES:.yo=.txt)
-OUTHTML_FILES = $(OUTYO_FILES:.yo=.html) $(OUTIN_FILES:.yo=.html) # $(OUTREADME_HTML_FILES)
-# OUTTEXINFO_FILES= $(addprefix $(outdir)/, $(addsuffix .texinfo,$(basename $(YO_FILES) .yo)))
+OUTHTML_FILES = $(OUTYO_FILES:.yo=.html) $(OUTIN_FILES:.yo=.html)
+
OUTREADME_TXT_FILES=$(addprefix $(outdir)/,$(addsuffix .txt, $(README_TOP_FILES)))
OUTREADME_HTML_FILES=$(addprefix $(outdir)/,$(addsuffix .html, $(README_TOP_FILES)))