fc82b3aabe8da7d4a6114fa833ea7a0e23aa8856
[platform/upstream/groff.git] / src / preproc / eqn / Makefile.sub
1 # Makefile.sub for `preproc eqn'
2 #
3 # File position: <groff-source>/src/preproc/eqn/Makefile.sub
4 #
5 # Copyright (C) 2014  Free Software Foundation, Inc.
6 #
7 # This file is part of `font utf8' which is part of `groff'.
8 #
9 # `groff' is free software; you can redistribute it and/or modify it
10 # under the terms of the GNU General Public License as published by
11 # the Free Software Foundation, either version 2 of the License, or
12 # (at your option) any later version.
13 #
14 # `groff' is distributed in the hope that it will be useful, but
15 # WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17 # General Public License for more details.
18 #
19 # You should have received a copy of the GNU General Public License
20 # along with this program. If not, see
21 # <http://www.gnu.org/licenses/gpl-2.0.html>.
22 #
23 ########################################################################
24
25 PROG=eqn$(EXEEXT)
26 MAN1=eqn.n neqn.n
27 XLIBS=$(LIBGROFF)
28 MLIB=$(LIBM)
29 OBJS=\
30   eqn.$(OBJEXT) \
31   main.$(OBJEXT) \
32   lex.$(OBJEXT) \
33   box.$(OBJEXT) \
34   limit.$(OBJEXT) \
35   list.$(OBJEXT) \
36   over.$(OBJEXT) \
37   text.$(OBJEXT) \
38   script.$(OBJEXT) \
39   mark.$(OBJEXT) \
40   other.$(OBJEXT) \
41   delim.$(OBJEXT) \
42   sqrt.$(OBJEXT) \
43   pile.$(OBJEXT) \
44   special.$(OBJEXT)
45 CCSRCS=\
46   $(srcdir)/main.cpp \
47   $(srcdir)/lex.cpp \
48   $(srcdir)/box.cpp \
49   $(srcdir)/limit.cpp \
50   $(srcdir)/list.cpp \
51   $(srcdir)/over.cpp \
52   $(srcdir)/text.cpp \
53   $(srcdir)/script.cpp \
54   $(srcdir)/mark.cpp \
55   $(srcdir)/other.cpp \
56   $(srcdir)/delim.cpp \
57   $(srcdir)/sqrt.cpp \
58   $(srcdir)/pile.cpp \
59   $(srcdir)/special.cpp
60 HDRS=\
61   $(srcdir)/box.h \
62   $(srcdir)/eqn.h \
63   $(srcdir)/pbox.h
64 GRAM=$(srcdir)/eqn.y
65 YTABC=eqn.cpp
66 YTABH=eqn_tab.h
67 NAMEPREFIX=$(g)
68 MOSTLYCLEANADD=neqn
69 RM=rm -f
70
71 all: neqn
72
73 neqn: neqn.sh $(SH_DEPS_SED_SCRIPT)
74         $(RM) $@
75         sed -e 's/@g@/$(g)/g' \
76             -f $(SH_DEPS_SED_SCRIPT) \
77             -e $(SH_SCRIPT_SED_CMD) $(srcdir)/neqn.sh >$@
78         chmod +x $@
79
80 install_data: neqn
81         $(RM) $(DESTDIR)$(bindir)/$(NAMEPREFIX)neqn
82         $(INSTALL_SCRIPT) neqn $(DESTDIR)$(bindir)/$(NAMEPREFIX)neqn
83
84 uninstall_sub:
85         $(RM) $(DESTDIR)$(bindir)/$(NAMEPREFIX)neqn
86
87 ########################################################################
88 # Emacs settings
89 ########################################################################
90 #
91 # Local Variables:
92 # mode: makefile
93 # End: