Changeset 229

Show
Ignore:
Timestamp:
04/23/08 17:48:19 (9 months ago)
Author:
conrad
Message:

add support for building cabalized Haskell sources

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • home/bin/build

    r227 r229  
    173173    build_configure_customize 
    174174    build_in_builddir  $srcdir/configure $CONFIGURE_FLAGS $* 
     175  elif [ -e Setup.lhs ] ; then 
     176    runhaskell Setup.lhs configure --user --prefix=$HOME 
    175177  fi 
    176178} 
     
    179181  if [ -e Makefile -o -e makefile ] ; then 
    180182    build_in_builddir $MAKE $* 
     183  elif [ -e Setup.lhs ] ; then 
     184    runhaskell Setup.lhs build 
    181185  fi 
    182186} 
    183187 
    184188build_install () { 
    185   if [ -e Makefile -o -e makefile] ; then 
     189  if [ -e Makefile -o -e makefile ] ; then 
    186190    build_in_builddir make install $* 
     191  elif [ -e Setup.lhs ] ; then 
     192    runhaskell Setup.lhs install --user 
    187193  fi 
    188194}