summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2010-10-08 18:02:21 -0700
committerGlenn Morris <rgm@gnu.org>2010-10-08 18:02:21 -0700
commitea274122d5d221b4d74435c22a48083550ad43c5 (patch)
tree3f011faaadf743d066b0592de4d9a47899d8c66a
parenta1ab97d068f2b8630b0e036510dd8e4b00faf8e4 (diff)
downloademacs-ea274122d5d221b4d74435c22a48083550ad43c5.tar.gz
Mark some doc/ rules as PHONY.
* doc/misc/Makefile.in (.PHONY): Declare info, dvi, pdf and the clean rules. * doc/lispref/Makefile.in (.PHONY): Declare info, dvi, pdf, dist. * doc/lispintro/Makefile.in (.PHONY): Declare info, dvi, html, pdf, dist. * doc/emacs/Makefile.in (.PHONY): Declare info, dvi, pdf, dist. (emacs): Remove rule. (dist): No need to deal with the emacs rule any more.
-rw-r--r--doc/emacs/ChangeLog6
-rw-r--r--doc/emacs/Makefile.in15
-rw-r--r--doc/lispintro/ChangeLog4
-rw-r--r--doc/lispintro/Makefile.in4
-rw-r--r--doc/lispref/ChangeLog4
-rw-r--r--doc/lispref/Makefile.in4
-rw-r--r--doc/misc/ChangeLog4
-rw-r--r--doc/misc/Makefile.in4
8 files changed, 40 insertions, 5 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog
index 793645d6dfe..b0d129c4497 100644
--- a/doc/emacs/ChangeLog
+++ b/doc/emacs/ChangeLog
@@ -1,3 +1,9 @@
+2010-10-09 Glenn Morris <rgm@gnu.org>
+
+ * Makefile.in (.PHONY): Declare info, dvi, pdf, dist.
+ (emacs): Remove rule.
+ (dist): No need to deal with the emacs rule any more.
+
2010-10-07 Glenn Morris <rgm@gnu.org>
* Makefile.in (version): New, set by configure.
diff --git a/doc/emacs/Makefile.in b/doc/emacs/Makefile.in
index 8c8f9b93729..2e02ee6738f 100644
--- a/doc/emacs/Makefile.in
+++ b/doc/emacs/Makefile.in
@@ -33,6 +33,11 @@ version=@version@
## Where the output files go.
## Note that the setfilename command in the .texi files assumes this.
+## This is a bit funny. Because the info files are in the
+## distribution tarfiles, they are always made in $scrdir/../../info,
+## even for out-of-tree builds. So infodir is really relative to srcdir.
+## The use of VPATH makes it work out, but why not set
+## infodir = $(srcdir)/../../info and make it explicit?
infodir=../../info
# Directory with the (customized) texinfo.tex file.
texinfodir = $(srcdir)/../misc
@@ -111,6 +116,8 @@ EMACSSOURCES= \
${srcdir}/kmacro.texi \
$(EMACS_XTRA)
+.PHONY: info dvi pdf
+
info: $(infodir)/emacs
$(infodir):
@@ -123,8 +130,6 @@ pdf: emacs.pdf
# 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.
-emacs : $(infodir)/emacs
-
$(infodir)/emacs: $(infodir) ${EMACSSOURCES}
cd $(srcdir); $(MAKEINFO) emacs.texi -o $@
@@ -161,17 +166,17 @@ infoclean:
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.
-## The emacs: rule becomes circular when we change infodir to ".".
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/\(infodir *=\).*/\1 ./' -e '/^emacs *:/d' \
- -e 's/^\(clean:.*\)/\1 infoclean/' \
+ -e 's/\(infodir *=\).*/\1 ./' -e 's/^\(clean:.*\)/\1 infoclean/' \
-e "s/@ver[s]ion@/${version}/" \
${srcdir}/Makefile.in > emacs-manual-${version}/Makefile
tar -cf emacs-manual-${version}.tar emacs-manual-${version}
diff --git a/doc/lispintro/ChangeLog b/doc/lispintro/ChangeLog
index 8489dbb4a15..95501d6ff70 100644
--- a/doc/lispintro/ChangeLog
+++ b/doc/lispintro/ChangeLog
@@ -1,3 +1,7 @@
+2010-10-09 Glenn Morris <rgm@gnu.org>
+
+ * Makefile.in (.PHONY): Declare info, dvi, html, pdf, dist.
+
2010-10-07 Glenn Morris <rgm@gnu.org>
* Makefile.in (version): New, set by configure.
diff --git a/doc/lispintro/Makefile.in b/doc/lispintro/Makefile.in
index a01a9bb9605..41f8f2a5c75 100644
--- a/doc/lispintro/Makefile.in
+++ b/doc/lispintro/Makefile.in
@@ -36,6 +36,8 @@ DVIPS = dvips
.SUFFIXES: .dvi .ps .texi
+.PHONY: info dvi html pdf
+
info: ${infodir}/eintr
$(infodir):
@@ -80,6 +82,8 @@ infoclean:
maintainer-clean: distclean infoclean
+.PHONY: dist
+
dist:
rm -rf emacs-lispintro-${version}
mkdir emacs-lispintro-${version}
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index 8b93b2fb125..ca636af8dea 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,7 @@
+2010-10-09 Glenn Morris <rgm@gnu.org>
+
+ * Makefile.in (.PHONY): Declare info, dvi, pdf, dist.
+
2010-10-07 Glenn Morris <rgm@gnu.org>
* Makefile.in (version): New, set by configure.
diff --git a/doc/lispref/Makefile.in b/doc/lispref/Makefile.in
index b91b05dce2a..ae9aaa64089 100644
--- a/doc/lispref/Makefile.in
+++ b/doc/lispref/Makefile.in
@@ -93,6 +93,8 @@ srcs = \
$(srcdir)/gpl.texi \
$(srcdir)/doclicense.texi
+.PHONY: info dvi pdf
+
# The info file is named `elisp'.
info: $(infodir)/elisp
dvi: elisp.dvi
@@ -129,6 +131,8 @@ infoclean:
maintainer-clean: distclean infoclean
+.PHONY: dist
+
## Note this excludes the two-volume stuff.
dist:
rm -rf emacs-lispref-${version}
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog
index aa1715551c8..93b129a2008 100644
--- a/doc/misc/ChangeLog
+++ b/doc/misc/ChangeLog
@@ -1,3 +1,7 @@
+2010-10-09 Glenn Morris <rgm@gnu.org>
+
+ * Makefile.in (.PHONY): Declare info, dvi, pdf and the clean rules.
+
2010-10-08 Julien Danjou <julien@danjou.info>
* gnus.texi: add mm-shr
diff --git a/doc/misc/Makefile.in b/doc/misc/Makefile.in
index 867d08e5711..6f32483af07 100644
--- a/doc/misc/Makefile.in
+++ b/doc/misc/Makefile.in
@@ -199,6 +199,8 @@ TEXI2PDF = texi2pdf
ENVADD = TEXINPUTS="$(srcdir):$(TEXINPUTS)" MAKEINFO="$(MAKEINFO) -I$(srcdir)"
+.PHONY: info dvi pdf
+
info: $(INFO_TARGETS)
$(infodir):
@@ -611,6 +613,8 @@ woman.pdf: woman.texi
$(ENVADD) $(TEXI2PDF) ${srcdir}/woman.texi
+.PHONY: mostlyclean clean distclean maintainer-clean
+
mostlyclean:
rm -f *.aux *.log *.cp *.cps *.fn *.fns *.ky *.kys \
*.op *.ops *.pg *.pgs *.tp *.tps *.vr *.vrs