summaryrefslogtreecommitdiff
path: root/src/roff/troff/troff.am
blob: c527215ea1025433f2754d0ff6c96154068a79ab (plain)
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
# Copyright (C) 2014
#      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 += troff
PREFIXMAN1 += src/roff/troff/troff.n
EXTRA_DIST += \
  src/roff/troff/column.cpp \
  src/roff/troff/troff.man \
  src/roff/troff/TODO
troff_LDADD = lib/libgnu.a libgroff.a $(LIBM)
troff_SOURCES = \
  src/roff/troff/dictionary.cpp \
  src/roff/troff/div.cpp \
  src/roff/troff/env.cpp \
  src/roff/troff/input.cpp \
  src/roff/troff/mtsm.cpp \
  src/roff/troff/node.cpp \
  src/roff/troff/number.cpp \
  src/roff/troff/reg.cpp \
  src/roff/troff/env.h \
  src/roff/troff/node.h \
  src/roff/troff/troff.h \
  src/roff/troff/div.h \
  src/roff/troff/reg.h \
  src/roff/troff/dictionary.h \
  src/roff/troff/input.h \
  src/roff/troff/mtsm.h \
  src/roff/troff/token.h \
  src/roff/troff/charinfo.h \
  src/roff/troff/request.h \
  src/roff/troff/hvunits.h

nodist_troff_SOURCES = src/roff/troff/majorminor.cpp 

src/roff/troff/input.$(OBJEXT): defs.h
CLEANFILES += src/roff/troff/majorminor.cpp

src/roff/troff/majorminor.cpp: $(top_srcdir)/VERSION $(top_srcdir)/REVISION
	@echo Making $@
	@rm -f $@
	@echo const char \*major_version = \
	  \"`sed -e 's/^\([^.]*\)\..*$$/\1/' $(top_srcdir)/VERSION`\"\; >$@
	@echo const char \*minor_version = \
	   \"`sed -e 's/^[^.]*\.\([0-9]*\).*$$/\1/' $(top_srcdir)/VERSION`\"\; \
	   >>$@
	@echo const char \*revision = \"`cat $(top_srcdir)/REVISION`\"\; >>$@