summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1994-04-26 22:07:10 +0000
committerKarl Heuer <kwzh@gnu.org>1994-04-26 22:07:10 +0000
commitebe72bcf912a99bfa6b3cd161cbe6a83ee6a8db2 (patch)
treec07caeed1cdefc4d649321dfc9f4448695a6bbb3 /Makefile.in
parentc7070fb13af899ac1180d0465d58ee0ec4523f1d (diff)
downloademacs-ebe72bcf912a99bfa6b3cd161cbe6a83ee6a8db2.tar.gz
(install-doc): New target.
(install-arch-dep): Depend on install-doc. (mkdir): Create docdir.
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in21
1 files changed, 12 insertions, 9 deletions
diff --git a/Makefile.in b/Makefile.in
index dbfc23072a6..45a41133a89 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -266,7 +266,10 @@ install: ${SUBDIR} install-arch-dep install-arch-indep;
### Note that we copy the DOC-* files from the build etc directory
### as well as lots of things from ${srcdir}/etc.
-install-arch-dep: mkdir
+
+## The docfile isn't really architecture-dependent, but we want to
+## install it along with the version of Emacs that it's keyed to.
+install-arch-dep: mkdir install-doc
(cd lib-src; \
$(MAKE) install $(MFLAGS) prefix=${prefix} \
exec_prefix=${exec_prefix} bindir=${bindir} libdir=${libdir} \
@@ -276,8 +279,13 @@ install-arch-dep: mkdir
rm -f ${bindir}/$(EMACS)
-ln ${bindir}/emacs-${version} ${bindir}/$(EMACS)
-### Note that we copy the DOC-* files from the build etc directory
-### as well as lots of things from ${srcdir}/etc.
+install-doc: mkdir
+ if [ `(cd ./etc; /bin/pwd)` != `(cd ${docdir}; /bin/pwd)` ]; \
+ then \
+ echo "Copying etc/DOC* ..." ; \
+ (cd etc; tar -cf - DOC*)|(cd ${docdir}; umask 0; tar -xvf - ); \
+ else true; fi
+
install-arch-indep: mkdir
-set ${COPYDESTS} ; \
for dir in ${COPYDIR} ; do \
@@ -301,11 +309,6 @@ install-arch-indep: mkdir
rm -f $${subdir}/*~ ; \
done) ; \
done
- if [ `(cd ./etc; /bin/pwd)` != `(cd ${docdir}; /bin/pwd)` ]; \
- then \
- echo "Copying etc/DOC* ..." ; \
- (cd etc; tar -cf - DOC*)|(cd ${docdir}; umask 0; tar -xvf - ); \
- else true; fi
thisdir=`pwd`; \
if [ `(cd ${srcdir}/info && /bin/pwd)` != `(cd ${infodir} && /bin/pwd)` ]; \
then \
@@ -327,7 +330,7 @@ install-arch-indep: mkdir
### instead of mkdir. Not all systems' mkdirs have the `-p' flag.
mkdir: FRC.mkdir
./lib-src/make-path ${COPYDESTS} ${lockdir} ${infodir} ${mandir} \
- ${bindir} ${datadir} ${libdir} \
+ ${bindir} ${datadir} ${docdir} ${libdir} \
`echo ${locallisppath} | sed 's/:/ /'`
-chmod 777 ${lockdir}