mkmi 1.98 KB
Newer Older
Per Cederqvist's avatar
Per Cederqvist committed
1
#!/bin/sh
2
# $Id: mkmi,v 1.23 2005/12/18 22:18:11 ceder Exp $ 
Per Cederqvist's avatar
Per Cederqvist committed
3
# Generate Makefile.in from Makefile.src template
4
# Copyright (C) 1994-1996, 1998-1999, 2003-2005  Lysator Academic Computer Association.
Per Cederqvist's avatar
Per Cederqvist committed
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
20
# Please report bugs at http://bugzilla.lysator.liu.se/. 
Per Cederqvist's avatar
Per Cederqvist committed
21

22 23 24 25 26
[ -f src/server/lyskomd.h ] || {
    echo $0: must be run from top of the source directory >&2
    exit 1
}

27 28 29 30 31 32
# Remove these files so that we pick up the correct versions from
# automake.  We rely on the automake maintainer to make sure that
# these files are always up-to-date as long as we install the latest
# automake.
rm -f \
    scripts/install-sh \
33
    scripts/missing \
34
    scripts/texinfo.tex \
35
    scripts/mkinstalldirs \
36
    scripts/depcomp \
37
    scripts/mdate-sh \
38
    INSTALL
39

Per Cederqvist's avatar
Per Cederqvist committed
40 41 42 43
# Tell the Gentoo wrapper scripts which versions of automake and
# autoconf we want.
WANT_AUTOMAKE=1.7
export WANT_AUTOMAKE
Per Cederqvist's avatar
Per Cederqvist committed
44
WANT_AUTOCONF=2.5
Per Cederqvist's avatar
Per Cederqvist committed
45 46
export WANT_AUTOCONF

47
aclocal -I m4
David Byers's avatar
David Byers committed
48
autoheader
49 50 51 52
automake -a
autoconf

(cd src/libraries/libisc-new && aclocal)
53
(cd src/libraries/libisc-new && automake -a)
54
(cd src/libraries/libisc-new && autoconf)
55 56 57 58

(cd src/libraries/liboop && aclocal)
(cd src/libraries/liboop && automake -a)
(cd src/libraries/liboop && autoconf)
59 60 61 62 63

(cd src/libraries/adns && aclocal)
(cd src/libraries/adns && autoheader)
(cd src/libraries/adns && automake -a)
(cd src/libraries/adns && autoconf)