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-fns.tex mod_tiling-fns.tex \
19 mod_query-fns.tex de-fns.tex mod_menu-fns.tex \
20 mod_dock-fns.tex mod_sp-fns.tex mod_statusbar-fns.tex
23 ######################################
26 @ echo "Please read the README first."
38 ######################################
41 $(INSTALLDIR) $(DOCDIR); \
42 for d in $(DOCS); do \
43 for e in ps pdf dvi; do \
44 test -f $$d.$$e && $(INSTALL) -m $(DATA_MODE) $$d.$$e $(DOCDIR); \
46 $(INSTALLDIR) $(DOCDIR)/$$d; \
48 $(INSTALL) -m $(DATA_MODE) $$i $(DOCDIR)/$$i; \
53 ######################################
62 $(L2H) -split 3 ionconf
66 ionconf-all: fntexes fnlist.tex ionconf-dvi-full ionconf-html
69 ######################################
75 makeindex ionnotes.idx
79 $(L2H) -split 4 ionnotes
81 ionnotes-all: ionnotes-dvi-full ionnotes-html
84 ######################################
86 all: ionconf-all ionnotes-all
88 all-ps: ionconf.ps ionnotes.ps
90 all-pdf: ionconf.pdf ionnotes.pdf
94 ######################################
97 rm -f $(FNTEXES) fnlist.tex
98 rm -f *.aux *.toc *.log
99 rm -f *.idx *.ild *.ilg *.ind
102 rm -f *.ps *.pdf *.dvi
106 # Function reference rules
107 ######################################
109 ioncore-fns.tex: $(TOPDIR)/ioncore/*.c $(TOPDIR)/ioncore/*.lua
110 $(MKEXPORTS) -module ioncore -mkdoc -o $@ $+
112 mod_tiling-fns.tex: $(TOPDIR)/mod_tiling/*.c
113 $(MKEXPORTS) -module mod_tiling -mkdoc -o $@ $+
115 mod_query-fns.tex: $(TOPDIR)/mod_query/*.c $(TOPDIR)/mod_query/mod_query.lua
116 $(MKEXPORTS) -module mod_query -mkdoc -o $@ $+
118 mod_menu-fns.tex: $(TOPDIR)/mod_menu/*.c $(TOPDIR)/mod_menu/mod_menu.lua
119 $(MKEXPORTS) -module mod_menu -mkdoc -o $@ $+
121 mod_dock-fns.tex: $(TOPDIR)/mod_dock/*.c
122 $(MKEXPORTS) -module mod_dock -mkdoc -o $@ $+
124 mod_sp-fns.tex: $(TOPDIR)/mod_sp/*.c
125 $(MKEXPORTS) -module mod_sp -mkdoc -o $@ $+
127 mod_statusbar-fns.tex: $(TOPDIR)/mod_statusbar/*.c
128 $(MKEXPORTS) -module mod_statusbar -mkdoc -o $@ $+
130 de-fns.tex: $(TOPDIR)/de/*.c
131 $(MKEXPORTS) -module de -mkdoc -o $@ $+
134 ######################################
136 fnlist.tex: $(FNTEXES)
137 grep hyperlabel $+ | \
138 sed 's/.*fn:\([^}]*\).*/\\fnlisti{\1}/;'|sort -d -f \