Imported Upstream version 1.22.4
[platform/upstream/groff.git] / src / preproc / eqn / eqn.am
1 # Copyright (C) 2014-2018 Free Software Foundation, Inc.
2 #
3 # Latest update: 22 Aug 2015
4 #
5 # This file is part of groff.
6 #
7 # groff is free software; you can redistribute it and/or modify it under
8 # the terms of the GNU General Public License as published by the Free
9 # Software Foundation, either version 3 of the License, or
10 # (at your option) any later version.
11 #
12 # groff is distributed in the hope that it will be useful, but WITHOUT ANY
13 # WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
15 # for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
19
20 prefixexecbin_PROGRAMS += eqn
21 prefixexecbin_SCRIPTS += neqn
22 eqn_CPPFLAGS = \
23   $(AM_CPPFLAGS) \
24   -I $(top_srcdir)/src/preproc/eqn \
25   -I $(top_builddir)/src/preproc/eqn
26 eqn_LDADD = $(LIBM) libgroff.a lib/libgnu.a
27 eqn_SOURCES = \
28   src/preproc/eqn/main.cpp \
29   src/preproc/eqn/lex.cpp \
30   src/preproc/eqn/box.cpp \
31   src/preproc/eqn/limit.cpp \
32   src/preproc/eqn/list.cpp \
33   src/preproc/eqn/over.cpp \
34   src/preproc/eqn/text.cpp \
35   src/preproc/eqn/script.cpp \
36   src/preproc/eqn/mark.cpp \
37   src/preproc/eqn/other.cpp \
38   src/preproc/eqn/delim.cpp \
39   src/preproc/eqn/sqrt.cpp \
40   src/preproc/eqn/pile.cpp \
41   src/preproc/eqn/special.cpp \
42   src/preproc/eqn/eqn.ypp \
43   src/preproc/eqn/box.h \
44   src/preproc/eqn/pbox.h \
45   src/preproc/eqn/eqn.h
46
47 PREFIXMAN1 += src/preproc/eqn/eqn.1 src/preproc/eqn/neqn.1
48 EXTRA_DIST += \
49   src/preproc/eqn/TODO \
50   src/preproc/eqn/neqn.sh \
51   src/preproc/eqn/eqn.1.man \
52   src/preproc/eqn/neqn.1.man
53
54 src/preproc/eqn/eqn-lex.$(OBJEXT): src/preproc/eqn/eqn.hpp
55 CLEANFILES += \
56   src/preproc/eqn/eqn.hpp \
57   src/preproc/eqn/eqn.cpp \
58   src/preproc/eqn/eqn.output
59
60 neqn: $(top_srcdir)/src/preproc/eqn/neqn.sh $(SH_DEPS_SED_SCRIPT)
61         $(AM_V_GEN)$(RM) $@ \
62         && sed -e 's/[@]g[@]/$(g)/g' \
63                -f $(SH_DEPS_SED_SCRIPT) \
64                -e $(SH_SCRIPT_SED_CMD) \
65                $(top_srcdir)/src/preproc/eqn/neqn.sh \
66                >$@ \
67         && chmod +x $@
68
69
70 ########################################################################
71 ### Emacs settings
72 # Local Variables:
73 # mode: makefile-automake
74 # End: