news: describe recently-fixed bug in vala support
[platform/upstream/automake.git] / tests / noinstdir.test
1 #! /bin/sh
2 # Copyright (C) 2001, 2002  Free Software Foundation, Inc.
3 #
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2, or (at your option)
7 # any later version.
8 #
9 # This program 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 this program.  If not, see <http://www.gnu.org/licenses/>.
16
17 # Test to make sure that noinst_* and check_* are not installed.
18 # From Pavel Roskin.
19
20 . ./defs || Exit 1
21
22 cat > Makefile.am << 'END'
23 noinst_SCRIPTS = foo.sh
24 noinst_DATA = foo.xpm
25 noinst_LIBRARIES = libfoo.a
26 noinst_PROGRAMS = foo
27 noinst_HEADERS = foo.h
28 check_SCRIPTS = bar.sh
29 check_DATA = bar.xpm
30 check_LIBRARIES = libbar.a
31 check_PROGRAMS = bar
32 check_HEADERS = bar.h
33 END
34
35 cat >> configure.in << 'END'
36 AC_PROG_CC
37 AC_PROG_RANLIB
38 END
39
40 $ACLOCAL || Exit 1
41 $AUTOMAKE || Exit 1
42
43 grep 'noinstdir' Makefile.in && Exit 1
44 grep 'checkdir' Makefile.in && Exit 1
45 Exit 0