From 1a4c95f6640b266c792254480947894088cb37d3 Mon Sep 17 00:00:00 2001 From: Juanma Barranquero Date: Thu, 13 Feb 2014 04:19:57 +0100 Subject: [PATCH] Copy README.W32 when installing Windows build (bug#14757). * Makefile.in (install-nt): Also pass datadir. * nt/Makefile.in (datarootdir, datadir, INSTALL_DATA): Declare. (install): Copy README.W32 to $(datadir)/emacs/$(version). (uninstall): Remove README.W32. --- ChangeLog | 4 ++++ Makefile.in | 1 + nt/ChangeLog | 6 ++++++ nt/Makefile.in | 12 ++++++++++++ 4 files changed, 23 insertions(+) diff --git a/ChangeLog b/ChangeLog index 67d3296200..22f33b07b1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2014-02-13 Juanma Barranquero + + * Makefile.in (install-nt): Also pass datadir. + 2014-02-05 Paul Eggert Merge from gnulib, incorporating: diff --git a/Makefile.in b/Makefile.in index e69998e3e5..192c9483eb 100644 --- a/Makefile.in +++ b/Makefile.in @@ -510,6 +510,7 @@ install-nt: $(MAKE) install $(MFLAGS) prefix="${prefix}" \ exec_prefix="${exec_prefix}" bindir="${bindir}" \ libexecdir="${libexecdir}" archlibdir="${archlibdir}" \ + datadir="${datadir}" \ INSTALL_STRIP=${INSTALL_STRIP} ## In the share directory, we are deleting: diff --git a/nt/ChangeLog b/nt/ChangeLog index 4c20ce5be8..4c721c4eb7 100644 --- a/nt/ChangeLog +++ b/nt/ChangeLog @@ -1,3 +1,9 @@ +2014-02-13 Juanma Barranquero + + * Makefile.in (datarootdir, datadir, INSTALL_DATA): Declare. + (install): Copy README.W32 to $(datadir)/emacs/$(version). + (uninstall): Remove README.W32. (Bug#14757) + 2014-02-08 Eli Zaretskii * INSTALL: Update for Emacs 24.4. diff --git a/nt/Makefile.in b/nt/Makefile.in index ab657900dd..9564ec241a 100644 --- a/nt/Makefile.in +++ b/nt/Makefile.in @@ -56,6 +56,15 @@ exec_prefix=@exec_prefix@ # to `../configure'. bindir=@bindir@ +# The root of the directory tree for read-only architecture-independent +# data files. ${datadir}, ${infodir} and ${mandir} are based on this. +datarootdir=@datarootdir@ + +# Where to install architecture-independent data files. ${lispdir} +# and ${etcdir} are subdirectories of this. This is set with the +# --datadir option to `../configure'. +datadir=@datadir@ + # Where to install and expect executable files to be run by Emacs # rather than directly by users, and other architecture-dependent # data. ${archlibdir} is usually below this. This is set with the @@ -95,6 +104,7 @@ archlibdir=@archlibdir@ # ../configure figures out the correct values for these. INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ # By default, we uphold the dignity of our programs. @@ -161,8 +171,10 @@ install: $(DESTDIR)${archlibdir} for file in ${INSTALLABLES} ; do \ $(INSTALL_PROGRAM) $(INSTALL_STRIP) $${file} "$(DESTDIR)${bindir}"/`echo $${file} | sed -e 's/${EXEEXT}$$//' -e '$(TRANSFORM)'`${EXEEXT} ; \ done + $(INSTALL_DATA) README.W32 "$(DESTDIR)${datadir}/emacs/$(version)" uninstall: + rm -f "$(DESTDIR)${datadir}/emacs/$(version)/README.W32" for file in ${INSTALLABLES}; do \ rm -f "$(DESTDIR)${bindir}"/`echo $${file} | sed -e 's/${EXEEXT}$$//' -e '$(TRANSFORM)'`${EXEEXT} ; \ done -- 2.20.1