1 # Copyright (c) 1995, 1996 Cygnus Support
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
19 exec_prefix = @exec_prefix@
20 datarootdir = @datarootdir@
23 man1dir = $(mandir)/man1
27 TEXI2DVI = TEXINPUTS=$(TEXIDIR):$(srcdir):$$TEXINPUTS texi2dvi
30 INSTALL_PROGRAM = @INSTALL_PROGRAM@
31 INSTALL_DATA = @INSTALL_DATA@
33 # Where to find texinfo.tex to format docn with TeX
34 TEXIDIR = $(srcdir)/../../texinfo
52 porting: porting.dvi porting.info
54 ######################################################################
55 # DOCUMENTATION TARGETS
57 porting.dvi: $(srcdir)/porting.texi $(srcdir)/porting.texi
58 $(TEXI2DVI) $(srcdir)/porting.texi
60 porting.pdf: $(srcdir)/porting.texi $(srcdir)/porting.texi
61 $(TEXI2DVI) --pdf $(srcdir)/porting.texi
63 # info file for online browsing
64 porting.info: $(srcdir)/porting.texi $(srcdir)/porting.texi
65 $(MAKEINFO) -I $(srcdir) -o porting.info $(srcdir)/porting.texi
67 porting.html: $(srcdir)/porting.texi $(srcdir)/porting.texi
68 $(MAKEINFO) --html -I $(srcdir) -o porting.html $(srcdir)/porting.texi
70 porting.ps: porting.dvi
71 dvips -f porting.dvi > porting.ps
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
85 porting.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' \
92 -e 's/^@alphaenumerate/@enumerate/g' \
93 -e 's/^@end alphaenumerate/@end enumerate/g' \
94 $(srcdir)/porting.texi | \
96 sed -e 's/---/\\(em/g' \
100 # '@noindent's removed due to texi2roff-2 mm bug; if yours is newer,
101 # try leaving them in
102 porting.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' \
110 -e 's/^@alphaenumerate/@enumerate/g' \
111 -e 's/^@end alphaenumerate/@end enumerate/g' \
112 $(srcdir)/porting.texi | \
114 sed -e 's/---/\\(em/g' \
118 porting.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' \
125 -e 's/^@alphaenumerate/@enumerate/g' \
126 -e 's/^@end alphaenumerate/@end enumerate/g' \
127 $(srcdir)/porting.texi | \
129 sed -e 's/---/\\(em/g' \
133 ######################################################################
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
139 maintainer-clean realclean: clean
145 for i in *.info* ; do \
146 $(INSTALL_DATA) $$i $(DESTDIR)$(infodir)/$$i ; \
153 -rm -f Makefile config.cache config.log config.status
155 Makefile: Makefile.in config.status
156 $(SHELL) config.status
158 config.status: configure
159 $(SHELL) config.status --recheck