Index: lib/libzlib.tex =================================================================== --- lib/libzlib.tex (revision 41632) +++ lib/libzlib.tex (working copy) @@ -178,4 +178,5 @@ \seeurl{http://www.zlib.net}{The zlib library home page.} \seeurl{http://www.zlib.net/manual.html}{The zlib manual explains the semantics and usage of the library's many functions.} + \IfFileExists{examples/zlib}{\input{examples/zlib}}{} \end{seealso} Index: Makefile =================================================================== --- Makefile (revision 41632) +++ Makefile (working copy) @@ -385,10 +385,23 @@ html/ext/ext.html: $(EXTFILES) $(MKHTML) --dir html/ext ext/ext.tex -lib: html/lib/lib.html html/lib/lib.css +lib: html/lib/lib.html html/lib/lib.css examples html/lib/lib.html: $(LIBFILES) $(MKHTML) --dir html/lib lib/lib.tex +SEEALSO_DIR=../../sandbox/seealso +examples: + if [ ! -d lib/examples ] ; then mkdir lib/examples ; fi + + # Delete existing database and files + rm -f lib/examples/* + + # Process all files + for url in `cat example-feeds` ; do $(SEEALSO_DIR)/parse-seealso.py $$url lib/examples/database ; done + + # Generate *.tex files from example database + $(SEEALSO_DIR)/make-seealso.py lib/examples/database lib/examples/ + mac: html/mac/mac.html html/mac/mac.css html/mac/mac.html: $(MACFILES) $(MKHTML) --dir html/mac mac/mac.tex