lilypond-0.0.40
[lilypond.git] / configure
blob2e50a3fbf4eca38774f10f5909562a51a397f981
1 #!/bin/sh
3 # project LilyPond -- the musical typesetter
4 # title (bash/sh/ksh) script to setup library and auto generated files
5 # file configure
7 # Copyright (c) 1997 by
8 # Han-Wen Nienhuys <hanwen@stack.nl>
9 # Jan Nieuwenhuizen <jan@digicash.com>
12 MAKE=${MAKE:-make}
13 PREFIX=${PREFIX:-.}
15 # this whole script sux, but here we go:
16 opt="`echo $1 | cut -c 1-3`"
17 if [ "$opt" = "-h" -o "$opt" = "--h" ]
18 then
19 echo "Usage:"
20 echo " [MAKE=make] configure [options]"
21 echo
22 echo "options:"
23 echo " -h, --help this text"
24 echo
25 echo "e.g.: MAKE=gmake configure"
26 exit
29 #############
30 #############
32 do_outdir() {
33 if [ \! -d $1/out ]
34 then
35 mkdir $1/out
36 echo 0 > $1/.build
40 echo using PREFIX=$PREFIX
42 #ugh # dist ze dan!, nou stiekem wordt "out" later toch "loes" of "doze"
43 # do_outdir flower/lib
44 # now all make rules!
46 echo Configuring Flower Library
48 #ugh, now all make rules
49 # the _real_ config stuff should be generated here, though.
50 # echo '#define LIBDIR "'$PREFIX'/"'> lib/out/config.hh
51 # touch flower/lib/out/flower-config.hh
52 # touch make/out/Site.make
54 $MAKE -C make -f Initial.make
56 echo "The sources are ready for compiling. "
57 echo "To make sure that you don't have any stale dependencies: do"
58 echo " make clean"