VPATH=$(srcdir)
TEXI2DVI=texi2dvi
TEXI2PDF=texi2pdf
-EMACS=@EMACS@
MAKEINFO=@MAKEINFO@
-FLAGS=-batch -q -no-site-file
-INFOSWI=-l ./dgnushack.el -f dgnushack-texi-format
-XINFOSWI=-l ./dgnushack.el -f dgnushack-texi-add-suffix-and-format
+EMACS=@EMACS@
+EMACSINFO=$(EMACS) -batch -q -no-site-file
+INFOSWI=-l ./dgnushack.el -l ./ptexinfmt.el \
+ -f dgnushack-texi-format
+XINFOSWI=-l ./dgnushack.el -l ./ptexinfmt.el \
+ -f dgnushack-texi-add-suffix-and-format
PDFLATEX=pdflatex
LATEX=latex
DVIPS=dvips
-PERL=perl
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
SHELL = /bin/sh
%.info: %.texi
if test $(MAKEINFO) = no; then \
- cd ../lisp && $(EMACS) $(FLAGS) $(XINFOSWI) ../texi/$<; \
+ cd ../lisp && $(EMACSINFO) $(XINFOSWI) ../texi/$<; \
else \
makeinfo -o $@ $<; \
fi
.SUFFIXES: .texi .dvi .ps .pdf
.texi:
- if test $(MAKEINFO) = no; then \
- cd ../lisp && $(EMACS) $(FLAGS) $(INFOSWI) ../texi/$<; \
+ if test "x$(MAKEINFO)" != "xno" ; then \
+ makeinfo -o $* $<; \
else \
- makeinfo $<; \
+ cd ../lisp && $(EMACSINFO) $(INFOSWI) ../texi/$<; \
fi
dvi: gnus.dvi message.dvi refcard.dvi emacs-mime.dvi
pdf: gnus.pdf message.pdf refcard.pdf emacs-mime.pdf
-
+
.texi.dvi :
- $(PERL) -n -e 'print unless (/\@iflatex/ .. /\@end iflatex/)' $< > gnustmp.texi
+ sed -e '/@iflatex/,/@end iflatex/d' $< > gnustmp.texi
$(TEXI2DVI) gnustmp.texi
cp gnustmp.dvi $*.dvi
rm gnustmp.*
.texi.pdf :
- $(PERL) -n -e 'print unless (/\@iflatex/ .. /\@end iflatex/)' $< > gnustmp.texi
+ sed -e '/@iflatex/,/@end iflatex/d' $< > gnustmp.texi
$(TEXI2PDF) gnustmp.texi
cp gnustmp.pdf $*.pdf
rm gnustmp.*
clean:
rm -f gnus.*.bak *.ky *.cp *.fn *.cps *.kys *.log *.aux *.dvi *.vr \
- *.tp *.toc *.pg gnus.latexi *.aux *.[cgk]idx \
+ *.pdf *.tp *.toc *.pg gnus.latexi *.aux *.[cgk]idx \
gnus.ilg gnus.ind gnus.[cgk]ind gnus.idx \
- gnus.tmptexi *.tmplatexi gnus.tmplatexi1 texput.log *.orig *.rej \
+ gnustmp.texi *.tmplatexi gnus.tmplatexi1 texput.log *.orig *.rej \
gnus.latexi*~* tmp/*.ps xface.tex picons.tex smiley.tex *.latexi \
gnus.info* gnus-ja.info* message.info* message-ja.info* \
emacs-mime.info
makeinfo -o message message.texi
texi2latex.elc: texi2latex.el
- $(EMACS) -batch -l bytecomp --eval '(byte-compile-file "texi2latex.el")'
+ $(EMACSINFO) -batch -l bytecomp --eval '(byte-compile-file "texi2latex.el")'
latex: gnus.texi texi2latex.elc
- $(EMACS) -batch -q -no-site-file gnus.texi -l ./texi2latex.elc -f latexi-translate
+ $(EMACSINFO) -batch -q -no-site-file gnus.texi -l ./texi2latex.elc -f latexi-translate
latexps:
$(MAKE) texi2latex.elc