2 # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
4 # This file is part of GNU Automake.
6 # GNU Automake is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2, or (at your option)
11 # GNU Automake is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with GNU Automake; see the file COPYING. If not, write to
18 # the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 # Boston, MA 02111-1307, USA.
21 # Test for conditional _LISP.
28 cat > Makefile.am
<< 'EOF'
29 dist_lisp_LISP
= am-one.el
31 dist_lisp_LISP
+= am-two.el
33 dist_noinst_LISP
= am-three.el
36 test -f $
(distdir
)/am-one.el
37 test -f $
(distdir
)/am-two.el
38 test -f $
(distdir
)/am-three.el
41 cat >> configure.
in << 'EOF'
42 AM_CONDITIONAL
([WANT_TWO
], test -n "$want_two")
47 echo "(provide 'am-one)" > am-one.el
48 echo "(require 'am-one)" > am-two.el
49 echo "(require 'am-one)" > am-three.el
53 $AUTOMAKE --add-missing
54 .
/configure
--with-lispdir=`pwd`/lisp
63 test -f lisp
/am-one.el
64 test -f lisp
/am-one.elc
65 test ! -f lisp
/am-two.el
66 test ! -f lisp
/am-two.elc
67 test ! -f lisp
/am-three.el
68 test ! -f lisp
/am-three.elc
75 test ! -f am-three.elc
79 .
/configure
--with-lispdir=`pwd`/lisp want_two
=1
86 # Let's mutilate the source tree, the check the recover rule.
95 test -f lisp
/am-one.el
96 test -f lisp
/am-one.elc
97 test -f lisp
/am-two.el
98 test -f lisp
/am-two.elc
99 test ! -f lisp
/am-three.el
100 test ! -f lisp
/am-three.elc
107 test ! -f am-three.elc