Here is my patch. It generates pdf, ps and compressed versions of dvi,
pdf, and ps.
Could you try it?
Regards,
Oliver
Stephen J. Turnbull schrieb:
>>>>>"Oliver" == Oliver Fischer
<plexus(a)snafu.de> writes:
Oliver> Am I right, that the Makefile must be able to run with
Oliver> nearly every make in the world?
Yes, it _should_, but don't worry about it. Just try to be careful
about the ones you are familiar with.
Index: Makefile
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/man/Makefile,v
retrieving revision 1.29
diff -r1.29 Makefile
22,27c22,31
< SHELL = /bin/sh
< MAKEINFO = makeinfo
< TEXI2DVI = texi2dvi
< TEXI2HTML = texi2html -verbose -split chapter
<
< RM = rm -f
---
BZIP2 ?= bzip2 -f -k -9
CAT = cat
DVIPS ?= dvips -o
GZ ?= gzip -9
MAKEINFO ?= makeinfo
RM = rm -f
SHELL = /bin/sh
TEXI2DVI ?= texi2dvi
TEXI2HTML ?= texi2html -verbose -split chapter
TEXI2PDF ?= texi2pdf --verbose --pdf -b
30c34
< .SUFFIXES: .html .info .texi .dvi
---
.SUFFIXES: .html .info .texi .dvi .pdf .ps
74a79,112
pdf_files = \
cl.pdf \
custom.pdf \
emodules.pdf \
external-widget.pdf \
info.pdf \
lispref.pdf \
internals.pdf \
new-users-guide.pdf \
standards.pdf \
term.pdf \
termcap.pdf \
texinfo.pdf \
widget.pdf \
xemacs.pdf \
xemacs-faq.pdf
ps_files = \
cl.ps \
custom.ps \
emodules.ps \
external-widget.ps \
info.ps \
lispref.ps \
internals.ps \
new-users-guide.ps \
standards.ps \
term.ps \
termcap.ps \
texinfo.ps \
widget.ps \
xemacs.ps \
xemacs-faq.ps
295c333
< .PHONY: info dvi
---
.PHONY: info dvi pdf
298c336
< -$(TEXI2DVI) $<
---
$(TEXI2DVI) $<
316,317c354,355
< $(RM) *.toc *.aux *.log *.op *.cp *.cps *.fn *.fns
< $(RM) *.ky *.kys *.pg *.pgs *.tp *.tps *.vr *.vrs
---
$(RM) *.toc *.aux *.log *.op *.cp *.cps *.fn *.fns *.bz2
$(RM) *.ky *.kys *.pg *.pgs *.tp *.tps *.vr *.vrs *.gz
319c357
< $(RM) core *.dvi
---
$(RM) core *.dvi *.pdf *.ps
391a430,493
# == P D F ================================================================
# All the targets in this section are needed to transform the texinfo
# documents into pdf.
pdf : $(pdf_files)
.texi.pdf:
$(TEXI2PDF) $<
xemacs.pdf : $(xemacs-srcs)
$(TEXI2PDF) -I xemacs xemacs/xemacs.texi
lispref.pdf : $(lispref-srcs)
$(TEXI2PDF) -I lispref lispref/lispref.texi
internals.pdf : $(internals-srcs)
$(TEXI2PDF) -I internals internals/internals.texi
new-users-guide.pdf : $(new-users-guide-srcs)
$(TEXI2PDF) -I new-users-guide new-users-guide/new-users-guide.texi
# == P S ==================================================================
# All the targets in this section are needed to transform the texinfo
# documents into ps.
ps : $(ps_files)
.texi.ps: $*.dvi
$(DVIPS) $@ $*.dvi
xemacs.ps : $*.dvi
$(DVIPS) $@ $*.dvi
lispref.ps : $*.dvi
$(DVIPS) $@ $*.dvi
internals.ps : $*.dvi
$(DVIPS) $@ $*.dvi
new-users-guide.ps : $*.dvi
$(DVIPS) $@ $*.dvi
# == G Z I P ==============================================================
gzip : $(dvi_files) $(pdf_files) $(ps_files)
@for d in $(dvi_files) $(pdf_files) $(ps_files) ; do \
if (test ! -e $$d.gz) || (test $$d -nt $$d.gz) ; then \
echo "$$d -> $$d.gz" ; \
$(CAT) $$d | $(GZ) > $$d.gz ; \
fi \
done
# == B Z I P 2 ============================================================
bzip2 : $(dvi_files) $(pdf_files) $(ps_files)
@for d in $(dvi_files) $(pdf_files) $(ps_files) ; do \
if (test ! -e $$d.bz2) || (test $$d -nt $$d.bz2) ; then \
echo "$$d -> $$d.bz2" ; \
$(BZIP2) $$d ; \
fi \
done