build: beware of POSIX mode
[bison.git] / examples / java / simple / local.mk
blob8a167d8d13f370b0eedbda6934b864847ef90d55
1 ## Copyright (C) 2018-2020 Free Software Foundation, Inc.
2 ##
3 ## This program is free software: you can redistribute it and/or modify
4 ## it under the terms of the GNU General Public License as published by
5 ## the Free Software Foundation, either version 3 of the License, or
6 ## (at your option) any later version.
7 ##
8 ## This program is distributed in the hope that it will be useful,
9 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
10 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 ## GNU General Public License for more details.
13 ## You should have received a copy of the GNU General Public License
14 ## along with this program. If not, see <http://www.gnu.org/licenses/>.
16 java_simpledir = $(docdir)/%D%
18 ## ------ ##
19 ## Calc. ##
20 ## ------ ##
22 if ENABLE_JAVA
23 check_SCRIPTS += %D%/Calc.class
24 TESTS += %D%/Calc.test
25 endif
26 EXTRA_DIST += %D%/Calc.test
28 %D%/Calc.java: %D%/Calc.y $(dependencies)
29 $(AM_V_GEN)$(MKDIR_P) %D%
30 $(AM_V_at)$(BISON) -o $@ $(srcdir)/%D%/Calc.y
32 %D%/Calc.class: %D%/Calc.java
33 $(AM_V_GEN) $(SHELL) $(top_builddir)/javacomp.sh %D%/Calc.java
35 dist_java_simple_DATA = %D%/Calc.y %D%/Makefile
36 CLEANFILES += %D%/*.class %D%/Calc.java