aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Blandy1992-12-24 05:56:33 +0000
committerJim Blandy1992-12-24 05:56:33 +0000
commit868e080d4116ff29e0e61a2d909a0b46dc486533 (patch)
treec01a2d4c7f8cd5eef9187386426aac784db13354
parent4d997d08f1b6baacabf944dc03dcc38f2ffe3a3b (diff)
downloademacs-868e080d4116ff29e0e61a2d909a0b46dc486533.tar.gz
emacs-868e080d4116ff29e0e61a2d909a0b46dc486533.zip
* INSTALL: The build process produces an executable called `emacs'
now. Change references. * Makefile.in: Adjust `install.mumble' targets to install `src/emacs', not `src/xemacs'. * Makefile.in (install, install.sysv, install.xenix, install.aix): Don't try to copy the info files if there aren't any; the unexpanded globbing pattern disappoints `install'. Ignore the return status of that command.
-rw-r--r--Makefile.in146
1 files changed, 77 insertions, 69 deletions
diff --git a/Makefile.in b/Makefile.in
index 2d131c64792..76c0245923c 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -12,7 +12,7 @@
12# 12#
13# make clean or make mostlyclean 13# make clean or make mostlyclean
14# Delete all files from the current directory that are normally 14# Delete all files from the current directory that are normally
15# created by building the program. Don't delete the files that 15# created by building the program. Don't delete the files that
16# record the configuration. Also preserve files that could be made 16# record the configuration. Also preserve files that could be made
17# by building, but normally aren't because the distribution comes 17# by building, but normally aren't because the distribution comes
18# with them. 18# with them.
@@ -68,19 +68,19 @@ exec_prefix=${prefix}
68# run directly (like etags). 68# run directly (like etags).
69bindir=${exec_prefix}/bin 69bindir=${exec_prefix}/bin
70 70
71# Where to install architecture-independent data files. ${lispdir} 71# Where to install architecture-independent data files. ${lispdir}
72# and ${etcdir} are subdirectories of this. 72# and ${etcdir} are subdirectories of this.
73datadir=${prefix}/lib 73datadir=${prefix}/lib
74 74
75# Where to install and expect the files that Emacs modifies as it 75# Where to install and expect the files that Emacs modifies as it
76# runs. These files are all architecture-independent. Right now, the 76# runs. These files are all architecture-independent. Right now, the
77# only such data is the locking directory; ${lockdir} is a 77# only such data is the locking directory; ${lockdir} is a
78# subdirectory of this. 78# subdirectory of this.
79statedir=${prefix}/lib 79statedir=${prefix}/lib
80 80
81# Where to install and expect executable files to be run by Emacs 81# Where to install and expect executable files to be run by Emacs
82# rather than directly by users, and other architecture-dependent 82# rather than directly by users, and other architecture-dependent
83# data. ${archlibdir} is a subdirectory of this. 83# data. ${archlibdir} is a subdirectory of this.
84libdir=${exec_prefix}/lib 84libdir=${exec_prefix}/lib
85 85
86# Where to install Emacs's man pages, and what extension they should have. 86# Where to install Emacs's man pages, and what extension they should have.
@@ -132,7 +132,7 @@ buildlisppath=../lisp
132 132
133# Where to install the other architecture-independent data files 133# Where to install the other architecture-independent data files
134# distributed with Emacs (like the tutorial, the cookie recipes and 134# distributed with Emacs (like the tutorial, the cookie recipes and
135# the Zippy database). This path usually contains the Emacs version 135# the Zippy database). This path usually contains the Emacs version
136# number, so the data files for multiple versions of Emacs may be 136# number, so the data files for multiple versions of Emacs may be
137# installed at once. 137# installed at once.
138etcdir=${datadir}/emacs/${version}/etc 138etcdir=${datadir}/emacs/${version}/etc
@@ -216,15 +216,15 @@ lib-src/Makefile: ${srcdir}/lib-src/Makefile.in Makefile
216 echo "# If you are thinking about editing it, you should seriously consider" ; \ 216 echo "# If you are thinking about editing it, you should seriously consider" ; \
217 echo "# running \`make lib-src/Makefile' at the top of the" ; \ 217 echo "# running \`make lib-src/Makefile' at the top of the" ; \
218 echo "# Emacs build tree instead, or editing" ; \ 218 echo "# Emacs build tree instead, or editing" ; \
219 echo "# \`${srcdir}/lib-src/Makefile.in' itself." ; \ 219 echo "# \`${srcdir}/lib-src/Makefile.in' itself." ; \
220 /bin/sed < ${srcdir}/lib-src/Makefile.in \ 220 /bin/sed < ${srcdir}/lib-src/Makefile.in \
221 -e 's|^\(version *=\).*$$|\1'"${version}"'|' \ 221 -e 's|^\(version *=\).*$$|\1'"${version}"'|' \
222 -e 's|^\(configname *=\).*$$|\1'"${configname}"'|' \ 222 -e 's|^\(configname *=\).*$$|\1'"${configname}"'|' \
223 -e 's|^\(prefix *=\).*$$|\1'"${prefix}"'|' \ 223 -e 's|^\(prefix *=\).*$$|\1'"${prefix}"'|' \
224 -e 's|^\(exec_prefix *=\).*$$|\1'"${exec_prefix}"'|' \ 224 -e 's|^\(exec_prefix *=\).*$$|\1'"${exec_prefix}"'|' \
225 -e 's|^\(libdir *=\).*$$|\1'"${libdir}"'|' \ 225 -e 's|^\(libdir *=\).*$$|\1'"${libdir}"'|' \
226 -e 's|^\(srcdir *=\).*$$|\1'"${srcdir}"'|' \ 226 -e 's|^\(srcdir *=\).*$$|\1'"${srcdir}"'|' \
227 -e 's|^\(archlibdir *=\).*$$|\1'"${archlibdir}"'|' \ 227 -e 's|^\(archlibdir *=\).*$$|\1'"${archlibdir}"'|' \
228 -e 's|^CC *=.*$$|CC='"${CC}"'|' \ 228 -e 's|^CC *=.*$$|CC='"${CC}"'|' \
229 -e 's|^CONFIG_CFLAGS *=.*$$|CONFIG_CFLAGS='"${CONFIG_CFLAGS}"'|' \ 229 -e 's|^CONFIG_CFLAGS *=.*$$|CONFIG_CFLAGS='"${CONFIG_CFLAGS}"'|' \
230 -e 's|^LOADLIBES *=.*$$|LOADLIBES='"${libsrc_libs}"'|' \ 230 -e 's|^LOADLIBES *=.*$$|LOADLIBES='"${libsrc_libs}"'|' \
@@ -240,9 +240,9 @@ src/Makefile: ${srcdir}/src/Makefile.in Makefile
240 echo "# If you are thinking about editing it, you should seriously consider" ; \ 240 echo "# If you are thinking about editing it, you should seriously consider" ; \
241 echo "# running \`make src/Makefile' at the top of the" ; \ 241 echo "# running \`make src/Makefile' at the top of the" ; \
242 echo "# Emacs build tree instead, or editing" ; \ 242 echo "# Emacs build tree instead, or editing" ; \
243 echo "# \`${srcdir}/src/Makefile.in' itself." ; \ 243 echo "# \`${srcdir}/src/Makefile.in' itself." ; \
244 /bin/sed < ${srcdir}/src/Makefile.in \ 244 /bin/sed < ${srcdir}/src/Makefile.in \
245 -e 's|^\(srcdir *=\).*$$|\1'"${srcdir}"'|' \ 245 -e 's|^\(srcdir *=\).*$$|\1'"${srcdir}"'|' \
246 -e 's|^CC *=.*$$|CC='"${CC}"'|' \ 246 -e 's|^CC *=.*$$|CC='"${CC}"'|' \
247 -e 's|^CONFIG_CFLAGS *=.*$$|CONFIG_CFLAGS='"${CONFIG_CFLAGS}"'|' \ 247 -e 's|^CONFIG_CFLAGS *=.*$$|CONFIG_CFLAGS='"${CONFIG_CFLAGS}"'|' \
248 -e '/^# DIST: /d') > src/Makefile.tmp 248 -e '/^# DIST: /d') > src/Makefile.tmp
@@ -278,18 +278,20 @@ install: all mkdir
278 done ; \ 278 done ; \
279 fi ; \ 279 fi ; \
280 done 280 done
281 (cd info ; \ 281 -(cd info ; \
282 if [ ! -f ${infodir}/dir ]; then \ 282 if [ ! -f ${infodir}/dir ]; then \
283 ${INSTALL_DATA} ${INSTALLFLAGS} -m 444 ./dir ${infodir}/dir ; \ 283 ${INSTALL_DATA} ${INSTALLFLAGS} -m 444 ./dir ${infodir}/dir ; \
284 fi ; \ 284 fi ; \
285 for f in *.info* ; do \ 285 if [ "`echo *.info*`" != "*.info*" ]; then \
286 ${INSTALL_DATA} ${INSTALLFLAGS} -m 444 $$f ${infodir}/$$f ; \ 286 for f in *.info* ; do \
287 done) 287 ${INSTALL_DATA} ${INSTALLFLAGS} -m 444 $$f ${infodir}/$$f ; \
288 done ; \
289 fi)
288 for page in emacs etags ctags ; do \ 290 for page in emacs etags ctags ; do \
289 ${INSTALL_DATA} ${INSTALLFLAGS} -m 444 etc/$${page}.1 \ 291 ${INSTALL_DATA} ${INSTALLFLAGS} -m 444 etc/$${page}.1 \
290 ${mandir}/$${page}${manext} ; \ 292 ${mandir}/$${page}${manext} ; \
291 done 293 done
292 ${INSTALL_PROGRAM} ${INSTALLFLAGS} -m 1755 src/xemacs \ 294 ${INSTALL_PROGRAM} ${INSTALLFLAGS} -m 1755 src/emacs \
293 ${bindir}/emacs-${version} 295 ${bindir}/emacs-${version}
294 -rm -f ${bindir}/emacs 296 -rm -f ${bindir}/emacs
295 ln ${bindir}/emacs-${version} ${bindir}/emacs 297 ln ${bindir}/emacs-${version} ${bindir}/emacs
@@ -312,17 +314,19 @@ install.sysv: all mkdir
312 fi ; \ 314 fi ; \
313 done 315 done
314 -(cd info ; \ 316 -(cd info ; \
315 if [ ! -f ${infodir}/dir ]; then \ 317 if [ ! -f ${infodir}/dir ]; then \
316 cpset ./dir ${infodir} 444 bin bin ; \ 318 cpset ./dir ${infodir} 444 bin bin ; \
317 fi ; \ 319 fi ; \
318 for f in *.info* ; do \ 320 if [ "`echo *.info*`" != "*.info*" ]; then \
319 cpset $$f ${infodir} 444 bin bin ; \ 321 for f in *.info* ; do \
320 done) 322 cpset $$f ${infodir} 444 bin bin ; \
323 done ; \
324 fi)
321 -for page in emacs etags ctags ; do \ 325 -for page in emacs etags ctags ; do \
322 cpset etc/$${page}.1 ${mandir}/$${page}${manext} 444 bin bin ; \ 326 cpset etc/$${page}.1 ${mandir}/$${page}${manext} 444 bin bin ; \
323 done 327 done
324 -/bin/rm -f ${bindir}/emacs 328 -/bin/rm -f ${bindir}/emacs
325 -cpset src/xemacs ${bindir}/emacs-${version} 1755 bin bin 329 -cpset src/emacs ${bindir}/emacs-${version} 1755 bin bin
326 -ln ${bindir}/emacs-${version} ${bindir}/emacs 330 -ln ${bindir}/emacs-${version} ${bindir}/emacs
327 331
328install.xenix: all mkdir 332install.xenix: all mkdir
@@ -342,21 +346,23 @@ install.xenix: all mkdir
342 done ; \ 346 done ; \
343 fi ; \ 347 fi ; \
344 done 348 done
345 (cd info ; \ 349 -(cd info ; \
346 if [ ! -f ${infodir}/dir ]; then \ 350 if [ ! -f ${infodir}/dir ]; then \
347 cp ./dir ${infodir} ; \ 351 cp ./dir ${infodir} ; \
348 chmod 444 ${infodir}/dir ; \ 352 chmod 444 ${infodir}/dir ; \
349 fi ; \ 353 fi ; \
350 for f in *.info* ; do \ 354 if [ "`echo *.info*`" != "*.info*" ]; then \
351 cp $$f ${infodir} ; \ 355 for f in *.info* ; do \
352 chmod 444 ${infodir}/$$f ; \ 356 cp $$f ${infodir} ; \
353 done) 357 chmod 444 ${infodir}/$$f ; \
358 done ; \
359 fi)
354 for page in emacs etags ctags ; do \ 360 for page in emacs etags ctags ; do \
355 cp etc/$${page}.1 ${mandir}/$${page}${manext} ; \ 361 cp etc/$${page}.1 ${mandir}/$${page}${manext} ; \
356 chmod 444 ${mandir}/$${page}${manext} ; \ 362 chmod 444 ${mandir}/$${page}${manext} ; \
357 done 363 done
358 -mv -f ${bindir}/emacs ${bindir}/emacs.old 364 -mv -f ${bindir}/emacs ${bindir}/emacs.old
359 cp src/xemacs ${bindir}/emacs-${version} 365 cp src/emacs ${bindir}/emacs-${version}
360 ln ${bindir}/emacs-${version} ${bindir}/emacs 366 ln ${bindir}/emacs-${version} ${bindir}/emacs
361 chmod 1755 ${bindir}/emacs 367 chmod 1755 ${bindir}/emacs
362 -rm -f ${bindir}/emacs.old 368 -rm -f ${bindir}/emacs.old
@@ -378,22 +384,24 @@ install.aix: all mkdir
378 done ; \ 384 done ; \
379 fi ; \ 385 fi ; \
380 done 386 done
381 (cd info ; \ 387 -(cd info ; \
382 if [ ! -f ${infodir}/dir ]; then \ 388 if [ ! -f ${infodir}/dir ]; then \
383 ${INSTALL_DATA} ${INSTALLFLAGS} -M 444 -f ${infodir} ./dir ; \ 389 ${INSTALL_DATA} ${INSTALLFLAGS} -M 444 -f ${infodir} ./dir ; \
384 fi ; \ 390 fi ; \
385 for f in *.info* ; do \ 391 if [ "`echo *.info*`" != "*.info*" ]; then \
386 ${INSTALL_DATA} ${INSTALLFLAGS} -M 444 -f ${infodir} $$f ; \ 392 for f in *.info* ; do \
387 done) 393 ${INSTALL_DATA} ${INSTALLFLAGS} -M 444 -f ${infodir} $$f ; \
388 ${INSTALL_PROGRAM} ${INSTALLFLAGS} -M 1755 -f ${bindir} src/xemacs 394 done ; \
389 mv ${bindir}/xemacs ${bindir}/emacs-${version} 395 fi)
396 ${INSTALL_PROGRAM} ${INSTALLFLAGS} -M 1755 -f ${bindir} src/emacs
397 mv ${bindir}/emacs ${bindir}/emacs-${version}
390 for page in emacs etags ctags ; do \ 398 for page in emacs etags ctags ; do \
391 ${INSTALL_DATA} ${INSTALLFLAGS} -M 444 -f ${mandir} etc/$${page}.1 ;\ 399 ${INSTALL_DATA} ${INSTALLFLAGS} -M 444 -f ${mandir} etc/$${page}.1 ;\
392 done 400 done
393 -rm -f ${bindir}/emacs 401 -rm -f ${bindir}/emacs
394 ln ${bindir}/emacs-${version} ${bindir}/emacs 402 ln ${bindir}/emacs-${version} ${bindir}/emacs
395 403
396### Build all the directories we're going to install Emacs in. Since 404### Build all the directories we're going to install Emacs in. Since
397### we may be creating several layers of directories (for example, 405### we may be creating several layers of directories (for example,
398### /usr/local/lib/emacs/19.0/mips-dec-ultrix4.2), we use make-path 406### /usr/local/lib/emacs/19.0/mips-dec-ultrix4.2), we use make-path
399### instead of mkdir. Not all systems' mkdirs have the `-p' flag. 407### instead of mkdir. Not all systems' mkdirs have the `-p' flag.
@@ -407,16 +415,16 @@ FRC:
407# ==================== Cleaning up and miscellanea ==================== 415# ==================== Cleaning up and miscellanea ====================
408 416
409### `clean' 417### `clean'
410### Delete all files from the current directory that are normally 418### Delete all files from the current directory that are normally
411### created by building the program. Don't delete the files that 419### created by building the program. Don't delete the files that
412### record the configuration. Also preserve files that could be made 420### record the configuration. Also preserve files that could be made
413### by building, but normally aren't because the distribution comes 421### by building, but normally aren't because the distribution comes
414### with them. 422### with them.
415### `mostlyclean' 423### `mostlyclean'
416### Like `clean', but may refrain from deleting a few files that 424### Like `clean', but may refrain from deleting a few files that
417### people normally don't want to recompile. For example, the 425### people normally don't want to recompile. For example, the
418### `mostlyclean' target for GCC does not delete `libgcc.a', because 426### `mostlyclean' target for GCC does not delete `libgcc.a', because
419### recompiling it is rarely necessary and takes a lot of time. 427### recompiling it is rarely necessary and takes a lot of time.
420### 428###
421clean mostlyclean: 429clean mostlyclean:
422 cd src; make clean 430 cd src; make clean
@@ -428,19 +436,19 @@ clean mostlyclean:
428 fi 436 fi
429 437
430### `distclean' 438### `distclean'
431### Delete all files from the current directory that are created by 439### Delete all files from the current directory that are created by
432### configuring or building the program. This should leave only the 440### configuring or building the program. This should leave only the
433### files that would be in the distribution. 441### files that would be in the distribution.
434distclean: 442distclean:
435 for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} distclean); done 443 for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} distclean); done
436 -(cd lock; rm *) 444 -(cd lock; rm *)
437 -rm config.status config-tmp-* 445 -rm config.status config-tmp-*
438 446
439### `realclean' 447### `realclean'
440### Delete everything from the current directory that can be 448### Delete everything from the current directory that can be
441### reconstructed with this makefile. This typically includes 449### reconstructed with this makefile. This typically includes
442### everything deleted by distclean, plus more: C source files 450### everything deleted by distclean, plus more: C source files
443### produced by Bison, tags tables, info files, and so on. 451### produced by Bison, tags tables, info files, and so on.
444realclean: 452realclean:
445 for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} realclean); done 453 for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} realclean); done
446 (cd lock; rm *) 454 (cd lock; rm *)