mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
The PDF versions of the GNU manuals used curved single quotes to
represent grave accent and apostrophe, which made it a pain to cut
and paste code examples from them. Fix the PDF versions to use
grave accent and apostrophe for Lisp source code, keystrokes, etc.
This change does not affect the info files, nor does it affect
ordinary uses of curved single quotes in PDF.
* doc/emacs/docstyle.texi: New file, which specifies treatment for
grave accent and apostrophe, as well as the document encoding.
* doc/emacs/emacs-xtra.texi, doc/emacs/emacs.texi:
* doc/lispintro/emacs-lisp-intro.texi:
* doc/lispref/back.texi, doc/lispref/book-spine.texi:
* doc/lispref/elisp.texi, doc/lispref/lay-flat.texi:
* doc/misc/ada-mode.texi, doc/misc/auth.texi:
* doc/misc/autotype.texi, doc/misc/bovine.texi, doc/misc/calc.texi:
* doc/misc/cc-mode.texi, doc/misc/cl.texi, doc/misc/dbus.texi:
* doc/misc/dired-x.texi, doc/misc/ebrowse.texi, doc/misc/ede.texi:
* doc/misc/ediff.texi, doc/misc/edt.texi, doc/misc/efaq-w32.texi:
* doc/misc/efaq.texi, doc/misc/eieio.texi, doc/misc/emacs-gnutls.texi:
* doc/misc/emacs-mime.texi, doc/misc/epa.texi, doc/misc/erc.texi:
* doc/misc/ert.texi, doc/misc/eshell.texi, doc/misc/eudc.texi:
* doc/misc/eww.texi, doc/misc/flymake.texi, doc/misc/forms.texi:
* doc/misc/gnus-coding.texi, doc/misc/gnus-faq.texi:
* doc/misc/gnus.texi, doc/misc/htmlfontify.texi:
* doc/misc/idlwave.texi, doc/misc/ido.texi, doc/misc/info.texi:
* doc/misc/mairix-el.texi, doc/misc/message.texi, doc/misc/mh-e.texi:
* doc/misc/newsticker.texi, doc/misc/nxml-mode.texi:
* doc/misc/octave-mode.texi, doc/misc/org.texi, doc/misc/pcl-cvs.texi:
* doc/misc/pgg.texi, doc/misc/rcirc.texi, doc/misc/reftex.texi:
* doc/misc/remember.texi, doc/misc/sasl.texi, doc/misc/sc.texi:
* doc/misc/semantic.texi, doc/misc/ses.texi, doc/misc/sieve.texi:
* doc/misc/smtpmail.texi, doc/misc/speedbar.texi:
* doc/misc/srecode.texi, doc/misc/todo-mode.texi, doc/misc/tramp.texi:
* doc/misc/url.texi, doc/misc/vhdl-mode.texi, doc/misc/vip.texi:
* doc/misc/viper.texi, doc/misc/widget.texi, doc/misc/wisent.texi:
* doc/misc/woman.texi:
Use it instead of '@documentencoding UTF-8', to lessen the need for
global changes like this in the future.
* doc/emacs/Makefile.in (EMACS_XTRA):
* doc/lispintro/Makefile.in (srcs):
* doc/lispref/Makefile.in (srcs):
Add dependency on docstyle.texi.
* doc/misc/Makefile.in (style): New macro.
(${buildinfodir}/%.info, %.dvi, %.pdf, %.html)
(${buildinfodir}/ccmode.info, ${buildinfodir}/efaq%.info, gnus_deps):
Use it.
175 lines
4.6 KiB
Makefile
175 lines
4.6 KiB
Makefile
### @configure_input@
|
|
|
|
# Copyright (C) 1994-1999, 2001-2015 Free Software Foundation, Inc.
|
|
|
|
# This file is part of GNU Emacs.
|
|
|
|
# GNU Emacs is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
# (at your option) any later version.
|
|
|
|
# GNU Emacs is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
SHELL = @SHELL@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
buildinfodir = $(srcdir)/../../info
|
|
# Directory with the (customized) texinfo.tex file.
|
|
texinfodir = $(srcdir)/../misc
|
|
# Directory with docstyle.texi and emacsver.texi.
|
|
emacsdir = $(srcdir)/../emacs
|
|
|
|
prefix = @prefix@
|
|
datarootdir = @datarootdir@
|
|
datadir = @datadir@
|
|
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
|
docdir = @docdir@
|
|
dvidir = @dvidir@
|
|
htmldir = @htmldir@
|
|
pdfdir = @pdfdir@
|
|
psdir = @psdir@
|
|
|
|
MKDIR_P = @MKDIR_P@
|
|
|
|
GZIP_PROG = @GZIP_PROG@
|
|
|
|
HTML_OPTS = --no-split --html
|
|
|
|
# Options used only when making info output.
|
|
INFO_OPTS= --no-split
|
|
|
|
INSTALL = @INSTALL@
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
MAKEINFO = @MAKEINFO@
|
|
MAKEINFO_OPTS = --force -I $(emacsdir) -I $(srcdir)
|
|
TEXI2DVI = texi2dvi
|
|
TEXI2PDF = texi2pdf
|
|
DVIPS = dvips
|
|
|
|
# 'make' verbosity.
|
|
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
|
|
|
AM_V_GEN = $(am__v_GEN_@AM_V@)
|
|
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
|
|
am__v_GEN_0 = @echo " GEN " $@;
|
|
am__v_GEN_1 =
|
|
|
|
ENVADD = \
|
|
$(AM_V_GEN)TEXINPUTS="$(srcdir):$(texinfodir):$(emacsdir):$(TEXINPUTS)" \
|
|
MAKEINFO="$(MAKEINFO) $(MAKEINFO_OPTS)"
|
|
|
|
DVI_TARGETS = emacs-lisp-intro.dvi
|
|
HTML_TARGETS = emacs-lisp-intro.html
|
|
PDF_TARGETS = emacs-lisp-intro.pdf
|
|
PS_TARGETS = emacs-lisp-intro.ps
|
|
|
|
srcs = ${srcdir}/emacs-lisp-intro.texi ${srcdir}/doclicense.texi \
|
|
${emacsdir}/docstyle.texi ${emacsdir}/emacsver.texi
|
|
|
|
## Disable implicit rules.
|
|
%.texi: ;
|
|
|
|
.PHONY: info dvi html pdf ps
|
|
|
|
info: ${buildinfodir}/eintr.info
|
|
dvi: $(DVI_TARGETS)
|
|
html: $(HTML_TARGETS)
|
|
pdf: $(PDF_TARGETS)
|
|
ps: $(PS_TARGETS)
|
|
|
|
${buildinfodir}:
|
|
${MKDIR_P} $@
|
|
|
|
# The file name eintr must fit within 5 characters, to allow for
|
|
# -NN extensions to fit into DOS 8+3 limits without clashing.
|
|
${buildinfodir}/eintr.info: ${srcs} | ${buildinfodir}
|
|
$(AM_V_GEN)$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ $<
|
|
|
|
emacs-lisp-intro.dvi: ${srcs}
|
|
$(ENVADD) $(TEXI2DVI) $<
|
|
|
|
emacs-lisp-intro.pdf: ${srcs}
|
|
$(ENVADD) $(TEXI2PDF) $<
|
|
|
|
emacs-lisp-intro.html: ${srcs}
|
|
$(AM_V_GEN)$(MAKEINFO) $(MAKEINFO_OPTS) $(HTML_OPTS) -o $@ $<
|
|
|
|
emacs-lisp-intro.ps: emacs-lisp-intro.dvi
|
|
$(DVIPS) -o $@ $<
|
|
|
|
.PHONY: mostlyclean clean distclean bootstrap-clean maintainer-clean infoclean
|
|
|
|
mostlyclean:
|
|
rm -f *.aux *.log *.toc *.cp *.cps *.fn *.fns *.ky *.kys \
|
|
*.op *.ops *.pg *.pgs *.tp *.tps *.vr *.vrs
|
|
|
|
clean: mostlyclean
|
|
rm -f $(DVI_TARGETS) $(HTML_TARGETS) $(PDF_TARGETS) $(PS_TARGETS)
|
|
|
|
distclean: clean
|
|
rm -f Makefile
|
|
|
|
infoclean:
|
|
rm -f \
|
|
$(buildinfodir)/eintr.info \
|
|
$(buildinfodir)/eintr.info-[1-9]
|
|
|
|
bootstrap-clean maintainer-clean: distclean infoclean
|
|
|
|
.PHONY: install-dvi install-html install-pdf install-ps install-doc
|
|
|
|
install-dvi: dvi
|
|
umask 022; $(MKDIR_P) "$(DESTDIR)$(dvidir)"
|
|
$(INSTALL_DATA) $(DVI_TARGETS) "$(DESTDIR)$(dvidir)"
|
|
install-html: html
|
|
umask 022; $(MKDIR_P) "$(DESTDIR)$(htmldir)"
|
|
$(INSTALL_DATA) $(HTML_TARGETS) "$(DESTDIR)$(htmldir)"
|
|
install-pdf: pdf
|
|
umask 022;$(MKDIR_P) "$(DESTDIR)$(pdfdir)"
|
|
$(INSTALL_DATA) $(PDF_TARGETS) "$(DESTDIR)$(pdfdir)"
|
|
install-ps: ps
|
|
umask 022; $(MKDIR_P) "$(DESTDIR)$(psdir)"
|
|
for file in $(PS_TARGETS); do \
|
|
$(INSTALL_DATA) $${file} "$(DESTDIR)$(psdir)"; \
|
|
[ -n "${GZIP_PROG}" ] || continue; \
|
|
rm -f "$(DESTDIR)$(psdir)/$${file}.gz"; \
|
|
${GZIP_PROG} -9n "$(DESTDIR)$(psdir)/$${file}"; \
|
|
done
|
|
|
|
## Top-level Makefile installs the info pages.
|
|
install-doc: install-dvi install-html install-pdf install-ps
|
|
|
|
|
|
.PHONY: uninstall-dvi uninstall-html uninstall-pdf uninstall-ps uninstall-doc
|
|
|
|
uninstall-dvi:
|
|
for file in $(DVI_TARGETS); do \
|
|
rm -f "$(DESTDIR)$(dvidir)/$${file}"; \
|
|
done
|
|
uninstall-html:
|
|
for file in $(HTML_TARGETS); do \
|
|
rm -f "$(DESTDIR)$(htmldir)/$${file}"; \
|
|
done
|
|
uninstall-ps:
|
|
ext= ; [ -n "${GZIP_PROG}" ] && ext=.gz; \
|
|
for file in $(PS_TARGETS); do \
|
|
rm -f "$(DESTDIR)$(psdir)/$${file}$${ext}"; \
|
|
done
|
|
uninstall-pdf:
|
|
for file in $(PDF_TARGETS); do \
|
|
rm -f "$(DESTDIR)$(pdfdir)/$${file}"; \
|
|
done
|
|
|
|
uninstall-doc: uninstall-dvi uninstall-html uninstall-pdf uninstall-ps
|
|
|
|
|
|
### Makefile ends here
|