]> git.saurik.com Git - wxWidgets.git/commitdiff
don't generate makefiles for the samples which don't build in current configuration
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 28 Jun 2003 11:49:34 +0000 (11:49 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 28 Jun 2003 11:49:34 +0000 (11:49 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21471 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

configure
configure.in

index a94ad7eae49fc8da4aeecea43e4fb70149e17ef3..06641117f839cf57a3094471a97e01e400737a11 100755 (executable)
--- a/configure
+++ b/configure
@@ -34736,10 +34736,17 @@ if test "$wxUSE_GUI" = "yes"; then
 else         SUBDIRS="samples utils"
 fi
 
-for subdir in echo `$SUBDIRS`; do
+for subdir in `echo $SUBDIRS`; do
     if test -d ${srcdir}/${subdir} ; then
         if test "$wxUSE_GUI" = "yes"; then
-            makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
+            if test ${subdir} = "samples"; then
+                                                for sample in `echo $SAMPLES_SUBDIRS`; do
+                    if test -d $srcdir/samples/$sample; then
+                        makefiles="samples/$sample/Makefile.in $makefiles"
+                    fi
+                done
+            else                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
+            fi
         else                                     if test ${subdir} = "samples"; then
                 makefiles="samples/console/Makefile.in"
             else                 makefiles="utils/HelpGen/Makefile.in \
index dcecf7cf1c9c3704a5b1c35785bd91084e25a5cb..0f32a89f95f2563249ec81339344c052413bb3e6 100644 (file)
@@ -5804,10 +5804,20 @@ else dnl we build wxBase only
     SUBDIRS="samples utils"
 fi
 
-for subdir in echo `$SUBDIRS`; do
+for subdir in `echo $SUBDIRS`; do
     if test -d ${srcdir}/${subdir} ; then
         if test "$wxUSE_GUI" = "yes"; then
-            makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
+            if test ${subdir} = "samples"; then
+                dnl only take those samples which compile in the current
+                dnl configuration and which exist
+                for sample in `echo $SAMPLES_SUBDIRS`; do
+                    if test -d $srcdir/samples/$sample; then
+                        makefiles="samples/$sample/Makefile.in $makefiles"
+                    fi
+                done
+            else dnl assume that everything compiles for utils &c
+                makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
+            fi
         else dnl we build wxBase only
             dnl don't take all samples/utils, just those which build with
             dnl wxBase