source: trunk/libs/newlib/src/libgloss/doc/Makefile.in @ 536

Last change on this file since 536 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 4.4 KB
Line 
1# Copyright (c) 1995, 1996 Cygnus Support
2#
3# The authors hereby grant permission to use, copy, modify, distribute,
4# and license this software and its documentation for any purpose, provided
5# that existing copyright notices are retained in all copies and that this
6# notice is included verbatim in any distributions. No written agreement,
7# license, or royalty fee is required for any of the authorized uses.
8# Modifications to this software may be copyrighted by their authors
9# and need not follow the licensing terms described here, provided that
10# the new terms are clearly indicated on the first page of each file where
11# they apply.
12#
13
14DESTDIR =
15srcdir = @srcdir@
16VPATH = @srcdir@
17
18prefix = @prefix@
19exec_prefix = @exec_prefix@
20datarootdir = @datarootdir@
21
22mandir = @mandir@
23man1dir = $(mandir)/man1
24infodir = @infodir@
25
26MAKEINFO = makeinfo
27TEXI2DVI = TEXINPUTS=$(TEXIDIR):$(srcdir):$$TEXINPUTS texi2dvi
28
29INSTALL = @INSTALL@
30INSTALL_PROGRAM = @INSTALL_PROGRAM@
31INSTALL_DATA = @INSTALL_DATA@
32
33# Where to find texinfo.tex to format docn with TeX
34TEXIDIR = $(srcdir)/../../texinfo
35
36MANPAGES =
37
38all:
39
40info:   porting.info
41
42html:   porting.html
43
44dvi:    porting.dvi
45
46pdf:    porting.pdf
47
48ps:     porting.ps
49
50doc:    info dvi
51
52porting: porting.dvi porting.info
53
54######################################################################
55# DOCUMENTATION TARGETS
56# TeX output
57porting.dvi: $(srcdir)/porting.texi $(srcdir)/porting.texi
58        $(TEXI2DVI) $(srcdir)/porting.texi
59
60porting.pdf: $(srcdir)/porting.texi $(srcdir)/porting.texi
61        $(TEXI2DVI) --pdf $(srcdir)/porting.texi
62
63# info file for online browsing
64porting.info: $(srcdir)/porting.texi $(srcdir)/porting.texi
65        $(MAKEINFO) -I $(srcdir) -o porting.info $(srcdir)/porting.texi
66
67porting.html: $(srcdir)/porting.texi $(srcdir)/porting.texi
68        $(MAKEINFO) --html -I $(srcdir) -o porting.html $(srcdir)/porting.texi
69
70porting.ps: porting.dvi
71        dvips -f porting.dvi > porting.ps
72               
73#   different targets for -ms, -mm, -me
74# Try to use a recent texi2roff.  v2 was put on prep in jan91.
75# If you want an index, see texi2roff doc for postprocessing
76# and add -i to texi2roff invocations below.
77# Workarounds for texi2roff-2 (probably fixed in later texi2roff's, delete
78#    correspondint -e lines when later texi2roff's are current)
79# + @ifinfo's deleted explicitly due to texi2roff-2 bug w nested constructs.
80# + @c's deleted explicitly because texi2roff sees texinfo commands in them
81# + @   (that's at-BLANK) not recognized by texi2roff, turned into blank
82# + @alphaenumerate is ridiculously new, turned into @enumerate
83
84# roff output (-ms)
85porting.ms: $(srcdir)/porting.texi
86        sed -e '/\\input texinfo/d' \
87                -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
88                -e '/^@ifinfo/,/^@end ifinfo/d' \
89                -e '/^@c/d' \
90                -e 's/{.*,,/{/' \
91                -e 's/@ / /g' \
92                -e 's/^@alphaenumerate/@enumerate/g' \
93                -e 's/^@end alphaenumerate/@end enumerate/g' \
94                $(srcdir)/porting.texi | \
95        $(TEXI2ROFF) -ms | \
96        sed -e 's/---/\\(em/g' \
97        >porting.ms
98
99# roff output (-mm)
100# '@noindent's removed due to texi2roff-2 mm bug; if yours is newer,
101#   try leaving them in
102porting.mm: $(srcdir)/porting.texi
103        sed -e '/\\input texinfo/d' \
104                -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
105                -e '/^@ifinfo/,/^@end ifinfo/d' \
106                -e '/^@c/d' \
107                -e 's/{.*,,/{/' \
108                -e '/@noindent/d' \
109                -e 's/@ / /g' \
110                -e 's/^@alphaenumerate/@enumerate/g' \
111                -e 's/^@end alphaenumerate/@end enumerate/g' \
112                $(srcdir)/porting.texi | \
113        $(TEXI2ROFF) -mm | \
114        sed -e 's/---/\\(em/g' \
115                >porting.mm
116
117# roff output (-me)
118porting.me: $(srcdir)/porting.texi
119        sed -e '/\\input texinfo/d' \
120                -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
121                -e '/^@ifinfo/,/^@end ifinfo/d' \
122                -e '/^@c/d' \
123                -e 's/{.*,,/{/' \
124                -e 's/@ / /g' \
125                -e 's/^@alphaenumerate/@enumerate/g' \
126                -e 's/^@end alphaenumerate/@end enumerate/g' \
127                $(srcdir)/porting.texi | \
128        $(TEXI2ROFF) -me | \
129        sed -e 's/---/\\(em/g' \
130        >porting.me
131
132
133######################################################################
134
135clean mostlyclean:
136        -rm -f *.o *~ \#* core *.aux *.cp *.dvi *.fn *.ky *.log *.pg *.toc \
137        *.tp *.vr *.cps *.fns *.kys *.pgs *.tps *.vrs *.info* *.1 *.ps
138
139maintainer-clean realclean: clean
140        -rm -f
141
142install:
143
144install-info: info
145        for i in *.info* ; do \
146                $(INSTALL_DATA) $$i $(DESTDIR)$(infodir)/$$i ; \
147        done
148
149clean-info:
150        -rm -rf *.info*
151
152distclean:      clean
153        -rm -f Makefile config.cache config.log config.status
154
155Makefile: Makefile.in config.status
156        $(SHELL) config.status
157
158config.status: configure
159        $(SHELL) config.status --recheck
Note: See TracBrowser for help on using the repository browser.