Add to git.
[dlife.git] / Build
1 #!/bin/sh -
2 # DLIFE (C) 2000 Richard W.M. Jones <rich@annexia.org>
3 # and other authors listed in the ``AUTHORS'' file.
4 #
5 # This program is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU General Public License
7 # as published by the Free Software Foundation; either version 2
8 # of the License, or (at your option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
18 #
19 # $Id: Build,v 1.1 2002/04/05 17:02:25 rich Exp $
20
21 # This is a highly specialized build script for my machine. You will
22 # probably need to change this substantially to be appropriate for
23 # your environment.
24 #
25 # Please note also that you normally only ever run this script if you
26 # have changed something about the build process itself -- for example
27 # if you have changed ``configure.in'' or one of the ``Makefile.am''
28 # files. If you just want to do a normal rebuild after changing a
29 # source file, all you need to do is:
30 #
31 # make && make install
32 #
33 #   - RWMJ 1999/12/27.
34
35 set -e
36 set -v
37
38 : Make clean
39 make distclean ||:
40
41 : Rebuilding autoconf/automake files
42 aclocal
43 autoheader
44 automake
45 autoconf
46
47 mkdir -p $HOME/.build/{usr/share/doc,etc/cron.d,etc/init.d,var} ||:
48
49 : Configure.
50 CFLAGS="-O" \
51 ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
52     --disable-user-check
53
54 : Build.
55 make
56
57 : Now run 'make install' as root.