Imported Upstream version 1.22.4
[platform/upstream/groff.git] / src / roff / troff / troff.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 += troff
21 PREFIXMAN1 += src/roff/troff/troff.1
22 EXTRA_DIST += \
23   src/roff/troff/column.cpp \
24   src/roff/troff/troff.1.man \
25   src/roff/troff/TODO
26 troff_LDADD = libgroff.a lib/libgnu.a $(LIBM)
27 troff_SOURCES = \
28   src/roff/troff/dictionary.cpp \
29   src/roff/troff/div.cpp \
30   src/roff/troff/env.cpp \
31   src/roff/troff/input.cpp \
32   src/roff/troff/mtsm.cpp \
33   src/roff/troff/node.cpp \
34   src/roff/troff/number.cpp \
35   src/roff/troff/reg.cpp \
36   src/roff/troff/env.h \
37   src/roff/troff/node.h \
38   src/roff/troff/troff.h \
39   src/roff/troff/div.h \
40   src/roff/troff/reg.h \
41   src/roff/troff/dictionary.h \
42   src/roff/troff/input.h \
43   src/roff/troff/mtsm.h \
44   src/roff/troff/token.h \
45   src/roff/troff/charinfo.h \
46   src/roff/troff/request.h \
47   src/roff/troff/hvunits.h
48
49 nodist_troff_SOURCES = src/roff/troff/majorminor.cpp
50
51 src/roff/troff/input.$(OBJEXT): defs.h
52 CLEANFILES += src/roff/troff/majorminor.cpp
53
54 src/roff/troff/majorminor.cpp: $(top_srcdir)/.version
55         @echo Making $@
56         @$(RM) $@
57         @echo const char \*major_version = \"$(MAJOR_VERSION)\"\; >$@
58         @echo const char \*minor_version = \"$(MINOR_VERSION)\"\; >>$@
59         @echo const char \*revision = \"$(REVISION)\"\; >>$@
60
61
62 ########################################################################
63 # Editor settings
64 ########################################################################
65 #
66 # Local Variables:
67 # mode: makefile-automake
68 # fill-column: 72
69 # End:
70 # vim: set filetype=automake textwidth=72: