Merge branch 'msvc' into maint
[platform/upstream/automake.git] / tests / nobase-nodist.test
1 #! /bin/sh
2 # Copyright (C) 2011 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 # Interaction of `nobase_' and `nodist_' prefixes.
18
19 . ./defs || Exit 1
20
21 set -e
22
23 # Simulate no emacs and no python (it shouldn't be needed in this test).
24 EMACS="no" PYTHON=":"; export EMCAS PYTHON
25
26 cat >> configure.in << 'END'
27 AM_PATH_LISPDIR
28 AM_PATH_PYTHON([], [], [:])
29 # Simulate no javac (it shouldn't be needed in this test).
30 AC_SUBST([JAVAC], [false])
31 AC_OUTPUT
32 END
33
34 cat > Makefile.am << 'END'
35 nobase_nodist_noinst_PYTHON = baz1.py sub/baz2.py
36 # Lisp and Java sources are not distributed by default, so try both
37 # with and without the `nodist_' prefix, for more coverage.
38 nobase_noinst_LISP = foo1.el sub/foo2.el
39 nobase_nodist_noinst_LISP = foo3.el sub/foo4.el
40 nobase_noinst_JAVA = bar1.java sub/bar2.java
41 nobase_nodist_noinst_JAVA = bar3.java sub/bar4.java
42 END
43
44 $ACLOCAL
45 $AUTOCONF
46 $AUTOMAKE -a
47 ./configure
48 $MAKE distdir
49
50 ls -l $distdir $distdir/* # For debugging.
51 test ! -f $distdir/foo1.el
52 test ! -f $distdir/sub/foo2.el
53 test ! -f $distdir/foo3.el
54 test ! -f $distdir/sub/foo4.el
55 test ! -f $distdir/bar1.java
56 test ! -f $distdir/sub/bar2.java
57 test ! -f $distdir/bar3.java
58 test ! -f $distdir/sub/bar4.java
59 test ! -f $distdir/baz1.py
60 test ! -f $distdir/sub/baz2.py
61
62 :