]> code.delx.au - gnu-emacs/blobdiff - doc/emacs/Makefile.in
Update copyright year to 2015
[gnu-emacs] / doc / emacs / Makefile.in
index e9894ac2207a34280d13b1035e5736b4aa650d83..9f04f0d7704875951b91a833a19910306819e987 100644 (file)
@@ -1,6 +1,6 @@
 ### @configure_input@
 
-# Copyright (C) 1994, 1996-2014 Free Software Foundation, Inc.
+# Copyright (C) 1994, 1996-2015 Free Software Foundation, Inc.
 
 # This file is part of GNU Emacs.
 
@@ -26,8 +26,9 @@ SHELL = @SHELL@
 # of the source tree.  This is set by configure's `--srcdir' option.
 srcdir=@srcdir@
 
-# Only for make dist.
-version=@version@
+top_srcdir = @top_srcdir@
+
+version = @version@
 
 ## Where the output files go.
 ## Note that the setfilename command in the .texi files assumes this.
@@ -72,8 +73,15 @@ 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 = TEXINPUTS="$(srcdir):$(texinfodir):$(TEXINPUTS)" \
+ENVADD = $(AM_V_GEN)TEXINPUTS="$(srcdir):$(texinfodir):$(TEXINPUTS)" \
          MAKEINFO="$(MAKEINFO) $(MAKEINFO_OPTS)"
 
 DVI_TARGETS = emacs.dvi emacs-xtra.dvi
@@ -161,7 +169,7 @@ ${buildinfodir}:
 # There is no provision for Info files to exist in the build directory.
 # In a distribution of Emacs, the Info files should be up to date.
 $(buildinfodir)/emacs.info: ${EMACSSOURCES} | ${buildinfodir}
-       $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ $<
+       $(AM_V_GEN)$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ $<
 
 emacs.dvi: ${EMACSSOURCES}
        $(ENVADD) $(TEXI2DVI) $<
@@ -170,7 +178,7 @@ emacs.pdf: ${EMACSSOURCES}
        $(ENVADD) $(TEXI2PDF) $<
 
 emacs.html: ${EMACSSOURCES}
-       $(MAKEINFO) $(MAKEINFO_OPTS) $(HTML_OPTS) -o $@ $<
+       $(AM_V_GEN)$(MAKEINFO) $(MAKEINFO_OPTS) $(HTML_OPTS) -o $@ $<
 
 emacs-xtra.dvi: $(EMACS_XTRA)
        $(ENVADD) $(TEXI2DVI) $<
@@ -181,6 +189,18 @@ emacs-xtra.pdf: $(EMACS_XTRA)
 %.ps: %.dvi
        $(DVIPS) -o $@ $<
 
+.PHONY: doc-emacsver
+
+# If configure were to just generate emacsver.texi from emacsver.texi.in
+# in the normal way, the timestamp of emacsver.texi would always be
+# newer than that of the info files, which are prebuilt in release tarfiles.
+# So we use this rule, and move-if-change, to avoid that.
+doc-emacsver:
+       sed 's/[@]version@/${version}/' \
+         ${srcdir}/emacsver.texi.in > emacsver.texi.$$$$ && \
+         ${top_srcdir}/build-aux/move-if-change emacsver.texi.$$$$ \
+         ${srcdir}/emacsver.texi
+
 .PHONY: mostlyclean clean distclean bootstrap-clean maintainer-clean infoclean
 
 ## Temp files.
@@ -191,7 +211,6 @@ mostlyclean:
 ## Products not in the release tarfiles.
 clean: mostlyclean
        rm -f $(DVI_TARGETS) $(HTML_TARGETS) $(PDF_TARGETS) $(PS_TARGETS)
-       rm -f emacs-manual-${version}.tar*
 
 distclean: clean
        rm -f Makefile
@@ -204,28 +223,7 @@ infoclean:
          $(buildinfodir)/emacs.info-[1-9][0-9]
 
 bootstrap-clean maintainer-clean: distclean infoclean
-
-.PHONY: dist
-
-## Make a standalone tarfile of the Emacs manual sources.
-## The [c] is a dumb way to prevent configure expanding it.
-dist:
-       rm -rf emacs-manual-${version}
-       mkdir emacs-manual-${version}
-       cp ${srcdir}/*.texi ${texinfodir}/texinfo.tex \
-         ${srcdir}/ChangeLog* emacs-manual-${version}/
-       sed -e 's/@sr[c]dir@/./' -e 's/^\(texinfodir *=\).*/\1 ./' \
-         -e 's/^\(buildinfodir *=\).*/\1 ./' \
-         -e 's/^\(clean:.*\)/\1 infoclean/' \
-         -e "s/@ver[s]ion@/${version}/" \
-         -e 's/@MAKE[I]NFO@/makeinfo/' -e 's/@MK[D]IR_P@/mkdir -p/' \
-         ${srcdir}/Makefile.in > emacs-manual-${version}/Makefile
-       @if grep '@[a-zA-Z_]*@' emacs-manual-${version}/Makefile; then \
-         echo "Unexpanded configure variables in Makefile?" 1>&2; exit 1; \
-       fi
-       tar -cf emacs-manual-${version}.tar emacs-manual-${version}
-       rm -rf emacs-manual-${version}
-
+       rm -f ${srcdir}/emacsver.texi
 
 .PHONY: install-dvi install-html install-pdf install-ps install-doc