#!/bin/sh # # project LilyPond -- the musical typesetter # title (bash/sh/ksh) script to setup library and auto generated files # file configure # # Copyright (c) 1997 by # Han-Wen Nienhuys # Jan Nieuwenhuizen # MAKE=${MAKE:-make} PREFIX=${PREFIX:-.} # this whole script sux, but here we go: opt="`echo $1 | cut -c 1-3`" if [ "$opt" = "-h" -o "$opt" = "--h" ] then echo "Usage:" echo " [MAKE=make] configure [options]" echo echo "options:" echo " -h, --help this text" echo echo "e.g.: MAKE=gmake configure" exit fi ############# ############# do_outdir() { if [ \! -d $1/out ] then mkdir $1/out echo 0 > $1/.build fi } echo using PREFIX=$PREFIX #ugh # dist ze dan!, nou stiekem wordt "out" later toch "loes" of "doze" # do_outdir flower/lib # now all make rules! echo Configuring Flower Library #ugh, now all make rules # the _real_ config stuff should be generated here, though. # echo '#define LIBDIR "'$PREFIX'/"'> lib/out/config.hh # touch flower/lib/out/flower-config.hh # touch make/out/Site.make $MAKE -C make -f Initial.make echo "The sources are ready for compiling. " echo "To make sure that you don't have any stale dependencies: do" echo " make clean"