blob: f066153a74f2db26c1baef6c524028df65a62fa9 (
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
|
# Copyright (C) 2002, 2003 Free Software Foundation, Inc.
# Written by Werner Lemberg (wl@gnu.org)
#
# 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 2, 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 groff; see the file COPYING. If not, write to the Free Software
# Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
# These may be overridden if cross-compiling.
GROFFBIN=$(top_builddir)/src/roff/groff/groff
GROFF_BIN_PATH=`echo $(groff_bin_dirs) | sed -e 's| *|:|g'`
groff_bin_dirs=\
$(top_builddir)/src/roff/groff \
$(top_builddir)/src/roff/troff \
$(top_builddir)/src/devices/grops
FFLAG=-F$(top_builddir)/font -F$(top_srcdir)/font
TFLAG=-M$(top_builddir)/tmac -M$(top_srcdir)/tmac -M$(srcdir)
GROFF=GROFF_COMMAND_PREFIX=''; \
export GROFF_COMMAND_PREFIX; \
GROFF_BIN_PATH=$(GROFF_BIN_PATH); \
export GROFF_BIN_PATH; \
$(GROFFBIN) $(FFLAG) $(TFLAG)
MAN7=\
groff_mom.n
NORMALFILES=\
mom.tmac \
om.tmac
HTMLDOCFILES=\
momdoc/appendices.html \
momdoc/cover.html \
momdoc/definitions.html \
momdoc/docelement.html \
momdoc/docprocessing.html \
momdoc/goodies.html \
momdoc/headfootpage.html \
momdoc/inlines.html \
momdoc/intro.html \
momdoc/letters.html \
momdoc/rectoverso.html \
momdoc/reserved.html \
momdoc/toc.html \
momdoc/typemacdoc.html \
momdoc/typesetting.html \
momdoc/using.html
EXAMPLEFILES=\
examples/letter.mom \
examples/macros.mom \
examples/typeset.mom \
examples/typewrite.mom \
examples/README.mom \
examples/elvis_syntax \
examples/penguin.ps
PROCESSEDEXAMPLEFILES=\
examples/letter.ps \
examples/macros.ps \
examples/typeset.ps \
examples/typewrite.ps
CLEANADD=\
penguin.ps \
$(PROCESSEDEXAMPLEFILES)
.SUFFIXES: .mom .ps
.mom.ps:
$(GROFF) -Tps -mom $< >$@
all: make_examples
.PHONY: make_examples
make_examples: prepare_make_examples $(PROCESSEDEXAMPLEFILES)
prepare_make_examples: examples/penguin.ps
test -d examples || $(mkinstalldirs) examples
test -f penguin.ps || cp $(srcdir)/examples/penguin.ps .
install_data: $(NORMALFILES) $(HTMLDOCFILES) \
$(EXAMPLEFILES) $(PROCESSEDEXAMPLEFILES)
-test -d $(tmacdir) || $(mkinstalldirs) $(tmacdir)
for f in $(NORMALFILES); do \
rm -f $(tmacdir)/$$f; \
$(INSTALL_DATA) $(srcdir)/$$f $(tmacdir)/$$f; \
done
-test -d $(htmldocdir)/momdoc || $(mkinstalldirs) $(htmldocdir)/momdoc
for f in $(HTMLDOCFILES); do \
rm -f $(htmldocdir)/$$f; \
$(INSTALL_DATA) $(srcdir)/$$f $(htmldocdir)/$$f; \
done
-test -d $(exampledir) || $(mkinstalldirs) $(exampledir)
for f in $(EXAMPLEFILES); do \
rm -f $(exampledir)/$$f; \
$(INSTALL_DATA) $(srcdir)/$$f $(docdir)/$$f; \
done
for f in $(PROCESSEDEXAMPLEFILES); do \
rm -f $(exampledir)/$$f; \
$(INSTALL_DATA) $$f $(docdir)/$$f; \
done
uninstall_sub:
-for f in $(NORMALFILES); do \
rm -f $(tmacdir)/$$f; \
done
-for f in $(HTMLDOCFILES); do \
rm -f $(htmldocdir)/$$f; \
done
-rmdir $(htmldocdir)/momdoc
-for f in $(EXAMPLEFILES) $(PROCESSEDEXAMPLEFILES); do \
rm -f $(docdir)/$$f; \
done
|