2000-03-18 06:48:54 +08:00
|
|
|
# Copyright (c) 1995, 1996 Cygnus Support
|
|
|
|
#
|
|
|
|
# The authors hereby grant permission to use, copy, modify, distribute,
|
|
|
|
# and license this software and its documentation for any purpose, provided
|
|
|
|
# that existing copyright notices are retained in all copies and that this
|
|
|
|
# notice is included verbatim in any distributions. No written agreement,
|
|
|
|
# license, or royalty fee is required for any of the authorized uses.
|
|
|
|
# Modifications to this software may be copyrighted by their authors
|
|
|
|
# and need not follow the licensing terms described here, provided that
|
|
|
|
# the new terms are clearly indicated on the first page of each file where
|
|
|
|
# they apply.
|
|
|
|
#
|
|
|
|
|
2004-06-29 06:42:21 +08:00
|
|
|
DESTDIR =
|
2000-03-18 06:48:54 +08:00
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
2009-01-08 06:10:29 +08:00
|
|
|
datarootdir = @datarootdir@
|
2000-03-18 06:48:54 +08:00
|
|
|
|
|
|
|
mandir = @mandir@
|
|
|
|
man1dir = $(mandir)/man1
|
|
|
|
infodir = @infodir@
|
2018-11-20 07:27:05 +08:00
|
|
|
htmldir = @htmldir@
|
|
|
|
pdfdir = @pdfdir@
|
2000-03-18 06:48:54 +08:00
|
|
|
|
|
|
|
MAKEINFO = makeinfo
|
|
|
|
TEXI2DVI = TEXINPUTS=$(TEXIDIR):$(srcdir):$$TEXINPUTS texi2dvi
|
|
|
|
|
|
|
|
INSTALL = @INSTALL@
|
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
|
|
|
|
# Where to find texinfo.tex to format docn with TeX
|
|
|
|
TEXIDIR = $(srcdir)/../../texinfo
|
|
|
|
|
|
|
|
MANPAGES =
|
|
|
|
|
|
|
|
all:
|
|
|
|
|
|
|
|
info: porting.info
|
|
|
|
|
2009-06-20 02:18:01 +08:00
|
|
|
html: porting.html
|
|
|
|
|
2000-03-18 06:48:54 +08:00
|
|
|
dvi: porting.dvi
|
|
|
|
|
2009-06-20 02:18:01 +08:00
|
|
|
pdf: porting.pdf
|
|
|
|
|
2000-03-18 06:48:54 +08:00
|
|
|
ps: porting.ps
|
|
|
|
|
|
|
|
doc: info dvi
|
|
|
|
|
|
|
|
porting: porting.dvi porting.info
|
|
|
|
|
|
|
|
######################################################################
|
|
|
|
# DOCUMENTATION TARGETS
|
|
|
|
# TeX output
|
|
|
|
porting.dvi: $(srcdir)/porting.texi $(srcdir)/porting.texi
|
|
|
|
$(TEXI2DVI) $(srcdir)/porting.texi
|
|
|
|
|
2009-06-20 02:18:01 +08:00
|
|
|
porting.pdf: $(srcdir)/porting.texi $(srcdir)/porting.texi
|
|
|
|
$(TEXI2DVI) --pdf $(srcdir)/porting.texi
|
|
|
|
|
2000-03-18 06:48:54 +08:00
|
|
|
# info file for online browsing
|
|
|
|
porting.info: $(srcdir)/porting.texi $(srcdir)/porting.texi
|
|
|
|
$(MAKEINFO) -I $(srcdir) -o porting.info $(srcdir)/porting.texi
|
|
|
|
|
2009-06-20 02:18:01 +08:00
|
|
|
porting.html: $(srcdir)/porting.texi $(srcdir)/porting.texi
|
|
|
|
$(MAKEINFO) --html -I $(srcdir) -o porting.html $(srcdir)/porting.texi
|
|
|
|
|
2000-03-18 06:48:54 +08:00
|
|
|
porting.ps: porting.dvi
|
|
|
|
dvips -f porting.dvi > porting.ps
|
2018-11-20 07:27:05 +08:00
|
|
|
|
2000-03-18 06:48:54 +08:00
|
|
|
# different targets for -ms, -mm, -me
|
|
|
|
# Try to use a recent texi2roff. v2 was put on prep in jan91.
|
|
|
|
# If you want an index, see texi2roff doc for postprocessing
|
|
|
|
# and add -i to texi2roff invocations below.
|
|
|
|
# Workarounds for texi2roff-2 (probably fixed in later texi2roff's, delete
|
|
|
|
# correspondint -e lines when later texi2roff's are current)
|
|
|
|
# + @ifinfo's deleted explicitly due to texi2roff-2 bug w nested constructs.
|
|
|
|
# + @c's deleted explicitly because texi2roff sees texinfo commands in them
|
|
|
|
# + @ (that's at-BLANK) not recognized by texi2roff, turned into blank
|
|
|
|
# + @alphaenumerate is ridiculously new, turned into @enumerate
|
|
|
|
|
|
|
|
# roff output (-ms)
|
|
|
|
porting.ms: $(srcdir)/porting.texi
|
|
|
|
sed -e '/\\input texinfo/d' \
|
|
|
|
-e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
|
|
|
|
-e '/^@ifinfo/,/^@end ifinfo/d' \
|
|
|
|
-e '/^@c/d' \
|
|
|
|
-e 's/{.*,,/{/' \
|
|
|
|
-e 's/@ / /g' \
|
|
|
|
-e 's/^@alphaenumerate/@enumerate/g' \
|
|
|
|
-e 's/^@end alphaenumerate/@end enumerate/g' \
|
|
|
|
$(srcdir)/porting.texi | \
|
|
|
|
$(TEXI2ROFF) -ms | \
|
|
|
|
sed -e 's/---/\\(em/g' \
|
|
|
|
>porting.ms
|
|
|
|
|
|
|
|
# roff output (-mm)
|
|
|
|
# '@noindent's removed due to texi2roff-2 mm bug; if yours is newer,
|
|
|
|
# try leaving them in
|
|
|
|
porting.mm: $(srcdir)/porting.texi
|
|
|
|
sed -e '/\\input texinfo/d' \
|
|
|
|
-e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
|
|
|
|
-e '/^@ifinfo/,/^@end ifinfo/d' \
|
|
|
|
-e '/^@c/d' \
|
|
|
|
-e 's/{.*,,/{/' \
|
|
|
|
-e '/@noindent/d' \
|
|
|
|
-e 's/@ / /g' \
|
|
|
|
-e 's/^@alphaenumerate/@enumerate/g' \
|
|
|
|
-e 's/^@end alphaenumerate/@end enumerate/g' \
|
|
|
|
$(srcdir)/porting.texi | \
|
|
|
|
$(TEXI2ROFF) -mm | \
|
|
|
|
sed -e 's/---/\\(em/g' \
|
|
|
|
>porting.mm
|
|
|
|
|
|
|
|
# roff output (-me)
|
|
|
|
porting.me: $(srcdir)/porting.texi
|
|
|
|
sed -e '/\\input texinfo/d' \
|
|
|
|
-e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
|
|
|
|
-e '/^@ifinfo/,/^@end ifinfo/d' \
|
|
|
|
-e '/^@c/d' \
|
|
|
|
-e 's/{.*,,/{/' \
|
|
|
|
-e 's/@ / /g' \
|
|
|
|
-e 's/^@alphaenumerate/@enumerate/g' \
|
|
|
|
-e 's/^@end alphaenumerate/@end enumerate/g' \
|
|
|
|
$(srcdir)/porting.texi | \
|
|
|
|
$(TEXI2ROFF) -me | \
|
|
|
|
sed -e 's/---/\\(em/g' \
|
|
|
|
>porting.me
|
|
|
|
|
|
|
|
|
|
|
|
######################################################################
|
|
|
|
|
|
|
|
clean mostlyclean:
|
|
|
|
-rm -f *.o *~ \#* core *.aux *.cp *.dvi *.fn *.ky *.log *.pg *.toc \
|
|
|
|
*.tp *.vr *.cps *.fns *.kys *.pgs *.tps *.vrs *.info* *.1 *.ps
|
|
|
|
|
|
|
|
maintainer-clean realclean: clean
|
|
|
|
-rm -f
|
|
|
|
|
|
|
|
install:
|
|
|
|
|
|
|
|
install-info: info
|
|
|
|
for i in *.info* ; do \
|
2004-06-29 06:42:21 +08:00
|
|
|
$(INSTALL_DATA) $$i $(DESTDIR)$(infodir)/$$i ; \
|
2000-03-18 06:48:54 +08:00
|
|
|
done
|
|
|
|
|
2018-11-20 07:27:05 +08:00
|
|
|
install-pdf: pdf
|
|
|
|
for i in *.pdf ; do \
|
|
|
|
$(INSTALL_DATA) $$i $(DESTDIR)$(pdfdir)/$$i ; \
|
|
|
|
done
|
|
|
|
|
|
|
|
install-html: html
|
|
|
|
for i in *.html ; do \
|
|
|
|
if [ -d $$i ]; then \
|
|
|
|
mkdir -p $(DESTDIR)$(htmldir)/$$i ; \
|
|
|
|
for j in $$i/*.html ; do \
|
|
|
|
$(INSTALL_DATA) $$j $(DESTDIR)$(htmldir)/$$j ; \
|
|
|
|
done \
|
|
|
|
else \
|
|
|
|
$(INSTALL_DATA) $$i $(DESTDIR)$(htmldir)/$$i ; \
|
|
|
|
fi ; \
|
|
|
|
done
|
|
|
|
|
2000-03-18 06:48:54 +08:00
|
|
|
clean-info:
|
|
|
|
-rm -rf *.info*
|
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
-rm -f Makefile config.cache config.log config.status
|
|
|
|
|
|
|
|
Makefile: Makefile.in config.status
|
|
|
|
$(SHELL) config.status
|
|
|
|
|
|
|
|
config.status: configure
|
|
|
|
$(SHELL) config.status --recheck
|