summaryrefslogtreecommitdiffstats
path: root/src/preproc/eqn/eqn.am
blob: 66699e58adfea7c6819fe218a7d1ecf49df08d80 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# Copyright (C) 2014-2018 Free Software Foundation, Inc.
#
# This file is part of groff.
#
# groff is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
# Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# groff is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

prefixexecbin_PROGRAMS += eqn
prefixexecbin_SCRIPTS += neqn
eqn_CPPFLAGS = \
  $(AM_CPPFLAGS) \
  -I $(top_srcdir)/src/preproc/eqn \
  -I $(top_builddir)/src/preproc/eqn
eqn_LDADD = $(LIBM) libgroff.a lib/libgnu.a
eqn_SOURCES = \
  src/preproc/eqn/main.cpp \
  src/preproc/eqn/lex.cpp \
  src/preproc/eqn/box.cpp \
  src/preproc/eqn/limit.cpp \
  src/preproc/eqn/list.cpp \
  src/preproc/eqn/over.cpp \
  src/preproc/eqn/text.cpp \
  src/preproc/eqn/script.cpp \
  src/preproc/eqn/mark.cpp \
  src/preproc/eqn/other.cpp \
  src/preproc/eqn/delim.cpp \
  src/preproc/eqn/sqrt.cpp \
  src/preproc/eqn/pile.cpp \
  src/preproc/eqn/special.cpp \
  src/preproc/eqn/eqn.ypp \
  src/preproc/eqn/box.h \
  src/preproc/eqn/pbox.h \
  src/preproc/eqn/eqn.h

PREFIXMAN1 += src/preproc/eqn/eqn.1 src/preproc/eqn/neqn.1
EXTRA_DIST += \
  src/preproc/eqn/TODO \
  src/preproc/eqn/neqn.sh \
  src/preproc/eqn/eqn.1.man \
  src/preproc/eqn/neqn.1.man

src/preproc/eqn/eqn-lex.$(OBJEXT): src/preproc/eqn/eqn.hpp
CLEANFILES += \
  src/preproc/eqn/eqn.hpp \
  src/preproc/eqn/eqn.cpp \
  src/preproc/eqn/eqn.output

neqn: $(top_srcdir)/src/preproc/eqn/neqn.sh $(SH_DEPS_SED_SCRIPT)
	$(AM_V_GEN)$(RM) $@ \
	&& sed -e 's/[@]g[@]/$(g)/g' \
	       -f $(SH_DEPS_SED_SCRIPT) \
	       -e $(SH_SCRIPT_SED_CMD) \
	       $(top_srcdir)/src/preproc/eqn/neqn.sh \
	       >$@ \
	&& chmod +x $@


# Local Variables:
# fill-column: 72
# mode: makefile-automake
# End:
# vim: set autoindent filetype=automake textwidth=72: