Update Standards-Version
[manu/libnss-mysql-bg.git] / Makefile.am
1 ##  Copyright (C) 2002 Ben Goodwin
2 ##  This file is part of the nss-mysql library.
3 ##
4 ##  The nss-mysql library is free software; you can redistribute it and/or
5 ##  modify it under the terms of the GNU General Public License as published
6 ##  by the Free Software Foundation; either version 2 of the License, or
7 ##  (at your option) any later version.
8 ##
9 ##  The nss-mysql library is distributed in the hope that it will be useful,
10 ##  but WITHOUT ANY WARRANTY; without even the implied warranty of
11 ##  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 ##  GNU General Public License for more details.
13 ##
14 ##  You should have received a copy of the GNU General Public License
15 ##  along with the nss-mysql library; if not, write to the Free Software
16 ##  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17 ##
18 ## $Id: Makefile.am,v 1.34 2004/04/11 23:10:06 cinergi Exp $
19 # From Makefile.am $Revision: 1.34 $
20
21 AUTOMAKE_OPTIONS = foreign 1.6
22 SUBDIRS = src
23
24 EXTRA_DIST = FAQ UPGRADING DEBUGGING libnss-mysql.spec src/*.sym \
25              sample/README sample/complex/*.* sample/minimal/*.* \
26              sample/linux/*.* sample/solaris/*.* sample/freebsd/*.*
27
28 install-data-hook:
29         @if test ! -f ${DESTDIR}${sysconfdir}/libnss-mysql.cfg; then \
30                 ${srcdir}/aux/mkinstalldirs ${DESTDIR}${sysconfdir}; \
31                 ${INSTALL_DATA} ${srcdir}/sample/@OS@/libnss-mysql.cfg \
32                         ${DESTDIR}${sysconfdir}/libnss-mysql.cfg; \
33         fi
34         @if test ! -f ${DESTDIR}${sysconfdir}/libnss-mysql-root.cfg; then \
35                 ${srcdir}/aux/mkinstalldirs ${DESTDIR}${sysconfdir}; \
36                 ${INSTALL_DATA} -m 600 ${srcdir}/sample/@OS@/libnss-mysql-root.cfg \
37                         ${DESTDIR}${sysconfdir}/libnss-mysql-root.cfg; \
38         fi