2 ######################################
6 include $(TOPDIR)/build/system-inc.mk
8 L2H=latex2html -show_section_numbers -short_index -local_icons -noaddress \
9 -up_url http://iki.fi/tuomov/ion/ -up_title "Ion homepage" -nofootnode\
10 ## -style greyviolet.css
13 # Function documentation to build
14 ######################################
18 FNTEXES=ioncore.exports mod_tiling.exports \
19 mod_query.exports de.exports mod_menu.exports \
20 mod_dock.exports mod_sp.exports mod_statusbar.exports
26 TARGETS = ionconf ionnotes
29 ######################################
32 @ echo "Please read the README first."
44 ######################################
47 $(INSTALLDIR) $(DOCDIR); \
48 for d in $(DOCS); do \
49 for e in ps pdf dvi; do \
50 test -f $$d.$$e && $(INSTALL) -m $(DATA_MODE) $$d.$$e $(DOCDIR); \
52 $(INSTALLDIR) $(DOCDIR)/$$d; \
54 $(INSTALL) -m $(DATA_MODE) $$i $(DOCDIR)/$$i; \
59 ######################################
61 ionconf-dvi: fnlist.tex
62 ionconf-ps: fnlist.tex
63 ionconf-pdf: fnlist.tex
65 ionconf-html: $(FNTEXES)
66 $(L2H) -split 3 ionconf
69 ######################################
72 $(L2H) -split 4 ionnotes
75 ######################################
77 .PHONY: all all-dvi all-ps all-pdf all-html
79 all: all-dvi all-ps all-pdf all-html
81 all-dvi: $(patsubst %,%-dvi,$(TARGETS))
83 all-ps: $(patsubst %, %-ps, $(TARGETS))
85 all-pdf: $(patsubst %, %-pdf, $(TARGETS))
87 all-html: $(patsubst %, %-html, $(TARGETS))
91 ######################################
94 rm -f $(FNTEXES) fnlist.tex
95 rm -f *.aux *.toc *.log
96 rm -f *.idx *.ild *.ilg *.ind
99 rm -f *.ps *.pdf *.dvi
103 # Function reference rules
104 ######################################
106 include $(TOPDIR)/libmainloop/rx.mk
108 $(TOPDIR)/%/exports.tex:
109 $(MAKE) -C $$(dirname $@) _exports_doc
111 %.exports: $(TOPDIR)/%/exports.tex
115 ######################################
117 fnlist.tex: $(FNTEXES)
118 grep hyperlabel $+ | \
119 sed 's/.*fn:\([^}]*\).*/\\fnlisti{\1}/;'|sort -d -f \