Changeset 245
- Timestamp:
- 04/25/08 15:02:30 (9 months ago)
- Files:
-
- home/bin/build (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
home/bin/build
r244 r245 221 221 if [ -e Kbuild ] ; then 222 222 build_kernel "Configuring" menuconfig 223 elif [ -e Setup.lhs -o -e Setup.hs ] ; then 224 build_cabal_customize 225 build_try_run "Configuring cabalized Haskell source" \ 226 runhaskell $CABAL_SETUP configure --user --prefix=$HOME/usr $CABAL_FLAGS $* 223 227 elif [ -e configure ] ; then 224 228 build_configure_customize 225 229 build_in_builddir $srcdir/configure $CONFIGURE_FLAGS $* 226 elif [ -e Setup.lhs -o -e Setup.hs ] ; then227 build_cabal_customize228 build_try_run "Configuring cabalized Haskell source" \229 runhaskell $CABAL_SETUP configure --user --prefix=$HOME/usr $CABAL_FLAGS $*230 230 fi 231 231 } … … 235 235 if [ -e Kbuild ] ; then 236 236 build_kernel "Building" 237 elif [ -e Setup.lhs -o -e Setup.hs ] ; then 238 build_cabal_customize 239 build_try_run "Building cabalized Haskell source" \ 240 runhaskell $CABAL_SETUP build $CABAL_FLAGS $* 237 241 elif [ -e $builddir/Makefile -o -e $builddir/makefile -o \ 238 242 -e Makefile -o -e makefile ] ; then 239 243 build_in_builddir $MAKE $* 240 elif [ -e Setup.lhs -o -e Setup.hs ] ; then 244 fi 245 } 246 247 build_check () { 248 builddir=$(build_get_dir) 249 if [ -e Setup.lhs -o -e Setup.hs ] ; then 241 250 build_cabal_customize 242 251 build_try_run "Building cabalized Haskell source" \ 243 runhaskell $CABAL_SETUP build $CABAL_FLAGS $* 244 fi 245 } 246 247 build_check () { 248 builddir=$(build_get_dir) 249 if [ -e $builddir/Makefile -o -e $builddir/makefile -o \ 252 runhaskell $CABAL_SETUP test $CABAL_FLAGS $* 253 elif [ -e $builddir/Makefile -o -e $builddir/makefile -o \ 250 254 -e Makefile -o -e makefile ] ; then 251 255 build_in_builddir $MAKE check $* 252 elif [ -e Setup.lhs -o -e Setup.hs ] ; then253 build_cabal_customize254 build_try_run "Building cabalized Haskell source" \255 runhaskell $CABAL_SETUP test $CABAL_FLAGS $*256 256 fi 257 257 } … … 259 259 build_install () { 260 260 builddir=$(build_get_dir) 261 if [ -e $builddir/Makefile -o -e $builddir/makefile -o \ 261 if [ -e Setup.lhs -o -e Setup.hs ] ; then 262 build_cabal_customize 263 build_try_run "Installing cabalized Haskell source" \ 264 runhaskell $CABAL_SETUP install --user $CABAL_FLAGS $* 265 elif [ -e $builddir/Makefile -o -e $builddir/makefile -o \ 262 266 -e Makefile -o -e makefile ] ; then 263 267 build_in_builddir make install $* 264 elif [ -e Setup.lhs -o -e Setup.hs ] ; then265 build_cabal_customize266 build_try_run "Installing cabalized Haskell source" \267 runhaskell $CABAL_SETUP install --user $CABAL_FLAGS $*268 268 fi 269 269 } … … 271 271 build_uninstall () { 272 272 builddir=$(build_get_dir) 273 if [ -e $builddir/Makefile -o -e $builddir/makefile -o \ 274 -e Makefile -o -e makefile ] ; then 275 build_in_builddir make uninstall $* 276 elif [ -e Setup.lhs -o -e Setup.hs ] ; then 273 if [ -e Setup.lhs -o -e Setup.hs ] ; then 277 274 build_cabal_customize 278 275 echo "build: ERROR: I don't know how to uninstall cabalized Haskell source :-(" 279 276 #build_try_run "Installing cabalized Haskell source" \ 280 277 # runhaskell $CABAL_SETUP uninstall --user $CABAL_FLAGS $* 278 elif [ -e $builddir/Makefile -o -e $builddir/makefile -o \ 279 -e Makefile -o -e makefile ] ; then 280 build_in_builddir make uninstall $* 281 281 fi 282 282 } 283 283 284 284 build_clean () { 285 if [ -e Kbuild -o build_intree_only] ; then285 if [ -e Kbuild -o $(build_intree_only) ] ; then 286 286 build_make clean 287 elif [ -e Setup.lhs -o -e Setup.hs ] ; then 288 build_cabal_customize 289 build_try_run "Cleaning cabalized Haskell source" \ 290 runhaskell $CABAL_SETUP clean $CABAL_FLAGS $* 287 291 else 288 292 builddir=$(build_get_dir) … … 379 383 build_ls $* 380 384 ;; 381 clean )382 build_clean 385 clean*) 386 build_clean $* 383 387 ;; 384 388 autogen*|mrproper)
