# HG changeset patch # User Thinker K.F. Li # Date 1221204670 -28800 # Node ID c14cb6d12030821e1de1b291fadfac396969e206 # Parent 703ab76aa8a52bf431fc85c9de3c2c8d11d05154 - diff -r 703ab76aa8a5 -r c14cb6d12030 Doxyfile --- a/Doxyfile Fri Sep 12 14:00:02 2008 +0800 +++ b/Doxyfile Fri Sep 12 15:31:10 2008 +0800 @@ -647,7 +647,7 @@ # Note: To get rid of all source code in the generated output, make sure also # VERBATIM_HEADERS is set to NO. -SOURCE_BROWSER = NO +SOURCE_BROWSER = YES # Setting the INLINE_SOURCES tag to YES will include the body # of functions and classes directly in the documentation. @@ -658,7 +658,7 @@ # doxygen to hide any special comment blocks from generated source code # fragments. Normal C and C++ comments will always remain visible. -STRIP_CODE_COMMENTS = YES +STRIP_CODE_COMMENTS = NO # If the REFERENCED_BY_RELATION tag is set to YES # then for each documented function all documented diff -r 703ab76aa8a5 -r c14cb6d12030 dox/first_program.h --- a/dox/first_program.h Fri Sep 12 14:00:02 2008 +0800 +++ b/dox/first_program.h Fri Sep 12 15:31:10 2008 +0800 @@ -16,9 +16,9 @@ * programs. * * For example, to translate foo.svg with steps - * - $(TOOLSDIR)/svg2code.py foo.svg foo.mb - * - m4 -I $(TOOLSDIR) mb_c_source.m4 foo.mb > foo.c - * - m4 -I $(TOOLSDIR) mb_c_header.m4 foo.mb > foo.h + * - $(PREFIX)/bin/svg2code.py foo.svg foo.mb + * - m4 -I $(PREFIX)/share/mb mb_c_source.m4 foo.mb > foo.c + * - m4 -I $(PREFIX)/share/mb mb_c_header.m4 foo.mb > foo.h * * foo.h declares a structure, named 'foo' and two functions, * foo_new() and foo_free(). An instance of 'foo' holds all objects for @@ -27,5 +27,5 @@ * and initialize a 'foo' instance. An instance is released by calling * foo_free(). * - * examples/svg2code_ex/ is a simple example. + * - \subpage svg2code_ex */ diff -r 703ab76aa8a5 -r c14cb6d12030 dox/install.h --- a/dox/install.h Fri Sep 12 14:00:02 2008 +0800 +++ b/dox/install.h Fri Sep 12 15:31:10 2008 +0800 @@ -4,8 +4,11 @@ * - install pmake (pmake is make of FreeBSD) * - install Cairo * + * Get source + * - hg clone http://hg.assembla.com/MadButterfly MadButterfly + * * Build and Install - * - cd src + * - cd MadButtfly * - make * - make install * diff -r 703ab76aa8a5 -r c14cb6d12030 examples/calculator/Makefile --- a/examples/calculator/Makefile Fri Sep 12 14:00:02 2008 +0800 +++ b/examples/calculator/Makefile Fri Sep 12 15:31:10 2008 +0800 @@ -1,5 +1,5 @@ SVG=calculator_scr.svg -TOOLSDIR=../../tools +TOOLSDIR=/usr/local/share/mb INCS=-I/usr/local/include CFLAGS+=`pkg-config --cflags cairo` $(INCS) -Wall LDFLAGS=-L/usr/local/lib `pkg-config --libs cairo` @@ -18,7 +18,7 @@ $(CC) -c $(CFLAGS) -o $@ $(SVG:C/.svg/.c/) $(SVG:C/.svg/.mb/): $(SVG) - $(TOOLSDIR)/svg2code.py $(.ALLSRC) $@ + /usr/local/bin/svg2code.py $(.ALLSRC) $@ $(SVG:C/.svg/.c/): $(SVG:C/.svg/.mb/) m4 -I $(TOOLSDIR) mb_c_source.m4 $(.ALLSRC) > $@ diff -r 703ab76aa8a5 -r c14cb6d12030 examples/svg2code_ex/Makefile --- a/examples/svg2code_ex/Makefile Fri Sep 12 14:00:02 2008 +0800 +++ b/examples/svg2code_ex/Makefile Fri Sep 12 15:31:10 2008 +0800 @@ -1,5 +1,5 @@ SVG=svg2code_ex.svg -TOOLSDIR=../../tools +TOOLSDIR=/usr/local/share/mb INCS=-I/usr/local/include CFLAGS+=`pkg-config --cflags cairo` $(INCS) -Wall LDFLAGS=-L/usr/local/lib `pkg-config --libs cairo` @@ -18,7 +18,7 @@ $(CC) -c $(CFLAGS) -o $@ $(SVG:C/.svg/.c/) $(SVG:C/.svg/.mb/): $(SVG) - $(TOOLSDIR)/svg2code.py $(.ALLSRC) $@ + /usr/local/bin/svg2code.py $(.ALLSRC) $@ $(SVG:C/.svg/.c/): $(SVG:C/.svg/.mb/) m4 -I $(TOOLSDIR) mb_c_source.m4 $(.ALLSRC) > $@ diff -r 703ab76aa8a5 -r c14cb6d12030 examples/svg2code_ex/main.c --- a/examples/svg2code_ex/main.c Fri Sep 12 14:00:02 2008 +0800 +++ b/examples/svg2code_ex/main.c Fri Sep 12 15:31:10 2008 +0800 @@ -1,3 +1,9 @@ +/*! \page svg2code_ex + * + * svg2code_ex is an example that show programmers how to create a + * menu with MadButterfly. + * + */ #include #include #include "svg2code_ex.h"