diff --git a/configure.in b/configure.in index 85bfd83..e8529ab 100644 --- a/configure.in +++ b/configure.in @@ -44,7 +44,7 @@ AM_INIT_AUTOMAKE($PACKAGENAME, $MAJOR.$MINOR.$LEAST, [marc.waeckerlin@tech.swiss AC_CONFIG_FILES([makefile ${PACKAGENAME}.spec src/version.cxx src/makefile test/makefile doc/doxyfile doc/makefile - src/mrw/mrw.hxx + src/mrw/mrw.hxx doc/examples/makefile src/${PACKAGENAME}.pc debian/changelog]) # copy M4 to shell diff --git a/doc/examples/smartpointer.cxx b/doc/examples/smartpointer.cxx index e5e7018..46731ff 100644 --- a/doc/examples/smartpointer.cxx +++ b/doc/examples/smartpointer.cxx @@ -10,14 +10,14 @@ class B: virtual public A { }; int main(int, char**) { - utl::SmartPointer i1 = new int; + mrw::SmartPointer i1 = new int; *i1 = 13; - utl::SmartPointer i2 = i1; - utl::SmartPointer i3; + mrw::SmartPointer i2 = i1; + mrw::SmartPointer i3; if (!i3) i3 = i2; *i2 = 666; // *i1 is now 666 too - utl::SmartPointer b1 = new B; - utl::SmartPointer b2 = b1; // b1 and b2 point to the same instance + mrw::SmartPointer b1 = new B; + mrw::SmartPointer b2 = b1; // b1 and b2 point to the same instance b1->a = 0; // b1->b does not compile b2->a = 1; b2->b = 2; diff --git a/doc/makefile.am b/doc/makefile.am index 11e7f6d..45c5f5f 100644 --- a/doc/makefile.am +++ b/doc/makefile.am @@ -5,7 +5,10 @@ ## 1 2 3 4 5 6 7 8 ## 45678901234567890123456789012345678901234567890123456789012345678901234567890 -ALL_SRC = ${top_srcdir}/src/*.[ch]xx +SUBDIRS = examples + +ALL_SRC = $(shell find ${top_srcdir}/doc/examples ${top_srcdir}/src \ + -name '*.[ch]xx') # ${top_srcdir}/src/*.doc DIRS = html