2 # Copyright (C) 2011-2012 Free Software Foundation, Inc.
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)
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.
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/>.
17 # Check use of EXTRA with the JAVA primary. Also test interaction
18 # of JAVA with conditionals (it's natural to test it here, since
19 # EXTRA_JAVA exists mostly for ensuring interoperation with Automake
25 cat >> configure.ac
<< 'END'
26 AM_CONDITIONAL
([COND
], [test x
"$cond" = x
"yes"])
30 cat > Makefile.am
<< 'END'
31 javadir
= $
(pkgdatadir
)/java
33 EXTRA_JAVA
= Class1.java Class2.java Class3.java
35 java_JAVA
= Class1.java
38 java_JAVA
+= Class2.java
40 java_JAVA
+= Class3.java
44 echo 'class Class3 {}' > $@
45 CLEANFILES
= Class3.java
48 echo "class Class1 {}" > Class1.java
49 echo "class Class2 {}" > Class2.java
60 test ! -e Class3.class
69 test ! -e Class2.class