changeset 110:c14cb6d12030

-
author Thinker K.F. Li <thinker@branda.to>
date Fri, 12 Sep 2008 15:31:10 +0800
parents 703ab76aa8a5
children 8feb89b19619
files Doxyfile dox/first_program.h dox/install.h examples/calculator/Makefile examples/svg2code_ex/Makefile examples/svg2code_ex/main.c
diffstat 6 files changed, 20 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- 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 
--- 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
  */
--- 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
  *
--- 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) > $@
--- 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) > $@
--- 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 <stdio.h>
 #include <mb/mb.h>
 #include "svg2code_ex.h"