* src/roff/troff/node.cpp (left_italic_corrected_node::add_self):
[s-roff.git] / contrib / mom / Makefile.sub
blob8b7b8d300c9e4854b09e3be55fd2314361d76d90
1 # Copyright (C) 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2 #      Written by Werner Lemberg (wl@gnu.org)
3
4 # This file is part of groff.
5
6 # groff is free software; you can redistribute it and/or modify it under
7 # the terms of the GNU General Public License as published by the Free
8 # Software Foundation; either version 2, or (at your option) any later
9 # version.
10
11 # groff is distributed in the hope that it will be useful, but WITHOUT ANY
12 # WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14 # for more details.
15
16 # You should have received a copy of the GNU General Public License along
17 # with groff; see the file COPYING.  If not, write to the Free Software
18 # Foundation, 51 Franklin St - Fifth Floor, Boston, MA 02110-1301, USA.
20 # These may be overridden if cross-compiling.
21 GROFFBIN=$(top_builddir)/src/roff/groff/groff
22 GROFF_BIN_PATH=`echo $(groff_bin_dirs) | sed -e 's|  *|$(SH_SEP)|g'`
24 groff_bin_dirs=\
25   $(top_builddir)/src/roff/groff \
26   $(top_builddir)/src/roff/troff \
27   $(top_builddir)/src/devices/grops
29 FFLAG=-F$(top_builddir)/font -F$(top_srcdir)/font
30 TFLAG=-M$(top_builddir)/tmac -M$(top_srcdir)/tmac -M$(srcdir)
32 GROFF=GROFF_COMMAND_PREFIX=''; \
33       export GROFF_COMMAND_PREFIX; \
34       GROFF_BIN_PATH=$(GROFF_BIN_PATH); \
35       export GROFF_BIN_PATH; \
36       $(GROFFBIN) $(FFLAG) $(TFLAG)
38 MAN7=\
39   groff_mom.n
41 NORMALFILES=\
42   mom.tmac
44 # These files are processed with `strip.sed'.
45 STRIPFILES=\
46   om.tmac
48 HTMLDOCFILES=\
49   momdoc/appendices.html \
50   momdoc/color.html \
51   momdoc/cover.html \
52   momdoc/definitions.html \
53   momdoc/docelement.html \
54   momdoc/docprocessing.html \
55   momdoc/goodies.html \
56   momdoc/headfootpage.html \
57   momdoc/inlines.html \
58   momdoc/intro.html \
59   momdoc/letters.html \
60   momdoc/macrolist.html \
61   momdoc/rectoverso.html \
62   momdoc/refer.html \
63   momdoc/reserved.html \
64   momdoc/toc.html \
65   momdoc/typemacdoc.html \
66   momdoc/typesetting.html \
67   momdoc/using.html
69 EXAMPLEFILES=\
70   examples/letter.mom \
71   examples/sample_docs.mom \
72   examples/typesetting.mom \
73   examples/README.txt \
74   examples/elvis_syntax \
75   examples/elvis_syntax.new \
76   examples/penguin.ps
78 PROCESSEDEXAMPLEFILES=\
79   examples/letter.ps \
80   examples/sample_docs.ps \
81   examples/typesetting.ps
83 HTMLDOCFILES_=`echo $(HTMLDOCFILES) | sed 's|momdoc/||g'`
84 EXAMPLEFILES_=`echo $(EXAMPLEFILES) | sed 's|examples/||g'`
85 PROCESSEDEXAMPLEFILES_=`echo $(PROCESSEDEXAMPLEFILES) | sed 's|examples/||g'`
87 CLEANADD=\
88   stamp-strip \
89   penguin.ps \
90   $(PROCESSEDEXAMPLEFILES) \
91   examples/stamp
93 .SUFFIXES: .mom .ps
94 .mom.ps:
95         $(GROFF) -Tps -mom $< >$@
98 all: stamp-strip $(PROCESSEDEXAMPLEFILES)
100 $(PROCESSEDEXAMPLEFILES): penguin.ps examples/stamp
102 penguin.ps:
103         cp $(srcdir)/examples/penguin.ps .
105 examples/stamp:
106         test -d examples || $(mkinstalldirs) examples
107         touch $@
109 install_data: stamp-strip $(NORMALFILES) $(HTMLDOCFILES) \
110               $(EXAMPLEFILES) $(PROCESSEDEXAMPLEFILES)
111         -test -d $(DESTDIR)$(tmacdir) || $(mkinstalldirs) $(DESTDIR)$(tmacdir)
112         for f in $(NORMALFILES); do \
113           rm -f $(DESTDIR)$(tmacdir)/$$f; \
114           $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(tmacdir)/$$f; \
115         done
116         for f in $(STRIPFILES); do \
117           rm -f $(DESTDIR)$(tmacdir)/$$f; \
118           $(INSTALL_DATA) $$f-s $(DESTDIR)$(tmacdir)/$$f; \
119         done
120         -test -d $(DESTDIR)$(htmldocdir)/mom \
121           || $(mkinstalldirs) $(DESTDIR)$(htmldocdir)/mom
122         for f in $(HTMLDOCFILES_); do \
123           rm -f $(DESTDIR)$(htmldocdir)/mom/$$f; \
124           $(INSTALL_DATA) $(srcdir)/momdoc/$$f \
125             $(DESTDIR)$(htmldocdir)/mom/$$f; \
126         done
127         -test -d $(DESTDIR)$(exampledir)/mom \
128           || $(mkinstalldirs) $(DESTDIR)$(exampledir)/mom
129         for f in $(EXAMPLEFILES_); do \
130           rm -f $(DESTDIR)$(exampledir)/mom/$$f; \
131           $(INSTALL_DATA) $(srcdir)/examples/$$f \
132             $(DESTDIR)$(exampledir)/mom/$$f; \
133         done
134         for f in $(PROCESSEDEXAMPLEFILES_); do \
135           rm -f $(DESTDIR)$(exampledir)/mom/$$f; \
136           $(INSTALL_DATA) examples/$$f $(DESTDIR)$(exampledir)/mom/$$f; \
137         done
139 stamp-strip: $(STRIPFILES)
140         for f in $(STRIPFILES); do \
141           rm -f $$f-s; \
142           sed -f $(top_srcdir)/tmac/strip.sed $(srcdir)/$$f >$$f-s; \
143         done
144         touch $@
146 uninstall_sub:
147         -for f in $(NORMALFILES) $(STRIPFILES); do \
148           rm -f $(DESTDIR)$(tmacdir)/$$f; \
149         done
150         -for f in $(HTMLDOCFILES_); do \
151           rm -f $(DESTDIR)$(htmldocdir)/mom/$$f; \
152         done
153         -rmdir $(DESTDIR)$(htmldocdir)/mom
154         -for f in $(EXAMPLEFILES_) $(PROCESSEDEXAMPLEFILES_); do \
155           rm -f $(DESTDIR)$(exampledir)/mom/$$f; \
156         done
157         -rmdir $(DESTDIR)$(exampledir)/mom