]> git.donarmstrong.com Git - lilypond.git/blob - configure
release: 0.0.40
[lilypond.git] / configure
1 #!/bin/sh
2 #
3 # project  LilyPond -- the musical typesetter
4 # title    (bash/sh/ksh) script to setup library and auto generated files
5 # file     configure
6 #
7 # Copyright (c) 1997 by    
8 #       Han-Wen Nienhuys <hanwen@stack.nl>
9 #       Jan Nieuwenhuizen <jan@digicash.com>
10
11
12 MAKE=${MAKE:-make}
13 PREFIX=${PREFIX:-.}
14
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
27 fi
28
29 #############
30 #############
31
32 do_outdir() {
33         if [ \! -d $1/out ]
34         then
35                 mkdir $1/out
36                 echo 0 > $1/.build
37         fi
38 }
39
40 echo using PREFIX=$PREFIX
41
42 #ugh # dist ze dan!, nou stiekem wordt "out" later toch "loes" of "doze"
43 # do_outdir flower/lib
44 # now all make rules!
45
46 echo Configuring Flower Library
47
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
53
54 $MAKE -C make -f Initial.make
55
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"
59