Changeset 11363

Show
Ignore:
Timestamp:
2008-09-04 11:03:00 (3 months ago)
Author:
olly
Message:

Update to handle search-xapian subdirectory.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/bootstrap

    r11144 r11363  
    203203done 
    204204 
     205# Search::Xapian doesn't use autotools. 
     206if [ -f "search-xapian/Makefile.PL" ] ; then 
     207  modules="$modules search-xapian" 
     208fi 
     209 
    205210# Generate the top-level configure script. 
    206211rm -f configure.tmp 
     
    306311      cd "$d" && "$configure" --enable-maintainer-mode --cache-file="$here/config.cache" ${1+"$@"} 
    307312      ;; 
     313    search-xapian) 
     314      # Extract any CXX=... argument from those passed to us. 
     315      unset cxxarg 
     316      for arg 
     317      do 
     318        case $arg in 
     319          CXX=*) cxxarg=$arg ;; 
     320        esac 
     321      done 
     322      cd "$d" && perl Makefile.PL XAPIAN_CONFIG="$XAPIAN_CONFIG" ${cxxarg+"$cxxarg"} 
     323      ;; 
    308324    *) 
    309325      cd "$d" && "$configure" --enable-maintainer-mode --cache-file="$here/config.cache" XAPIAN_CONFIG="$XAPIAN_CONFIG" ${1+"$@"} 
     
    326342      # Need to ensure swig is built before "make dist", "make check", etc. 
    327343      echo "    cd $d && \$(MAKE)" >> Makefile.tmp ;; 
    328     swig,mostlyclean) 
     344    swig,mostlyclean|search-xapian,mostlyclean) 
    329345      echo "    cd $d && \$(MAKE) clean" >> Makefile.tmp ;; 
    330     swig,*) 
    331       echo "    cd $d && \$(MAKE) $target" >> Makefile.tmp ;; 
     346    search-xapian,install-strip) 
     347      echo "    cd $d && \$(MAKE) install" >> Makefile.tmp ;; 
     348    search-xapian,maintainer-clean) 
     349      echo "    cd $d && \$(MAKE) realclean" >> Makefile.tmp ;; 
     350    search-xapian,distcheck) 
     351      echo "    cd $d && \$(MAKE) disttest" >> Makefile.tmp ;; 
    332352    xapian-bindings,distcheck) 
    333353      # FIXME: distcheck doesn't currently work for xapian-bindings because