+2001-02-01 Katsumi Yamaoka <yamaoka@jpl.org>
+
+ * lisp/dgnushack.el (dgnushack-texi-format): A workaround for
+ @ifnottex.
+
+ * texi/Makefile.in (.texi, %.info): Don't use makeinfo command when
+ gnus-ja.texi or message-ja.texi is given. It is needed for some
+ make command if which can not understand "%-ja:" or "%-ja.info:".
+ (.texi, %.info, %-ja.info, %-ja): Don't eval `EMACSINFOHACK'.
+ (EMACSINFOHACK): Move to lisp/dgnushack.el.
+
2001-01-29 Katsumi Yamaoka <yamaoka@jpl.org>
* lisp/gnus-art.el (gnus-article-mime-edit-exit): Use
EMACSINFO=$(EMACS) -batch -q -no-site-file
INFOSWI=-l ./dgnushack.el -f dgnushack-texi-format
XINFOSWI=-l ./dgnushack.el -f dgnushack-texi-add-suffix-and-format
-EMACSINFOHACK=-eval '(while (re-search-forward "@\\(end \\)?ifnottex" nil t) (replace-match ""))'
PDFLATEX=pdflatex
LATEX=latex
DVIPS=dvips
most: texi2latex.elc latex latexps
%-ja: %-ja.texi
- cd ../lisp && $(EMACSINFO) -eval '(find-file "$<")' \
- $(EMACSINFOHACK) $(INFOSWI) ../texi/$<; \
+ cd ../lisp && $(EMACSINFO) $(INFOSWI) ../texi/$<
%-ja.info: %-ja.texi
- cd ../lisp && $(EMACSINFO) -eval '(find-file "$<")' \
- $(EMACSINFOHACK) $(XINFOSWI) ../texi/$<; \
+ cd ../lisp && $(EMACSINFO) $(XINFOSWI) ../texi/$<
%.info: %.texi
- if test $(MAKEINFO) = no; then \
- cd ../lisp && $(EMACSINFO) -eval '(find-file "$<")' \
- $(EMACSINFOHACK) $(XINFOSWI) ../texi/$<; \
+ if test "x$(MAKEINFO)" = "xno" \
+ -o "$<" = "gnus-ja.texi" \
+ -o "$<" = "message-ja.texi"; then \
+ cd ../lisp && $(EMACSINFO) $(XINFOSWI) ../texi/$<; \
else \
- makeinfo -o $@ $<; \
+ $(MAKEINFO) -o $@ $<; \
fi
.SUFFIXES: .texi .dvi .ps .pdf
.texi:
- if test "x$(MAKEINFO)" != "xno" ; then \
- makeinfo -I $(srcdir) -o $* $<; \
+ if test "x$(MAKEINFO)" = "xno" \
+ -o "$<" = "gnus-ja.texi" \
+ -o "$<" = "message-ja.texi"; then \
+ cd ../lisp && $(EMACSINFO) $(INFOSWI) ../texi/$<; \
else \
- cd ../lisp && $(EMACSINFO) -eval '(find-file "$<")' \
- $(EMACSINFOHACK) $(INFOSWI) ../texi/$<; \
+ $(MAKEINFO) -I $(srcdir) -o $* $<; \
fi
dvi: gnus.dvi message.dvi refcard.dvi emacs-mime.dvi