Mercurial > hg > xemacs-beta
comparison Makefile.in @ 371:cc15677e0335 r21-2b1
Import from CVS: tag r21-2b1
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:03:08 +0200 |
parents | a4f53d9b3154 |
children | 6240c7796c7a |
comparison
equal
deleted
inserted
replaced
370:bd866891f083 | 371:cc15677e0335 |
---|---|
53 RECURSIVE_MAKE=@RECURSIVE_MAKE@ | 53 RECURSIVE_MAKE=@RECURSIVE_MAKE@ |
54 SHELL = /bin/sh | 54 SHELL = /bin/sh |
55 LANG = C | 55 LANG = C |
56 RM = rm -f | 56 RM = rm -f |
57 pwd = /bin/pwd | 57 pwd = /bin/pwd |
58 TAR = tar | |
59 | 58 |
60 ## ==================== Things `configure' Might Edit ==================== | 59 ## ==================== Things `configure' Might Edit ==================== |
61 | 60 |
62 CC=@CC@ | 61 CC=@CC@ |
63 CPP=@CPP@ | 62 CPP=@CPP@ |
173 | 172 |
174 ## Where to create and expect the locking directory, where | 173 ## Where to create and expect the locking directory, where |
175 ## the XEmacs locking code keeps track of which files are | 174 ## the XEmacs locking code keeps track of which files are |
176 ## currently being edited. | 175 ## currently being edited. |
177 lockdir=@lockdir@ | 176 lockdir=@lockdir@ |
178 | |
179 # Where to put the DOC file. | |
180 docdir=@docdir@ | |
181 | 177 |
182 ## Where to put executables to be run by XEmacs rather than | 178 ## Where to put executables to be run by XEmacs rather than |
183 ## the user. This path usually includes the XEmacs version | 179 ## the user. This path usually includes the XEmacs version |
184 ## and configuration name, so that multiple configurations | 180 ## and configuration name, so that multiple configurations |
185 ## for multiple versions of XEmacs may be installed at | 181 ## for multiple versions of XEmacs may be installed at |
385 if test "`(cd ${archlibdir} && $(pwd))`" != \ | 381 if test "`(cd ${archlibdir} && $(pwd))`" != \ |
386 "`(cd ./lib-src && $(pwd))`"; then \ | 382 "`(cd ./lib-src && $(pwd))`"; then \ |
387 if test -f ../Installation; then \ | 383 if test -f ../Installation; then \ |
388 ${INSTALL_DATA} ../Installation ${archlibdir}/Installation; \ | 384 ${INSTALL_DATA} ../Installation ${archlibdir}/Installation; \ |
389 fi; \ | 385 fi; \ |
390 ${INSTALL_DATA} lib-src/config.values ${docdir}/config.values; \ | 386 for f in DOC config.values; do \ |
391 ${INSTALL_DATA} lib-src/DOC ${docdir}/DOC; \ | 387 ${INSTALL_DATA} lib-src/$${f} ${archlibdir}/$${f}; \ |
388 done ; \ | |
392 for subdir in `find ${archlibdir} -type d ! -name RCS ! -name SCCS ! -name CVS -print` ; \ | 389 for subdir in `find ${archlibdir} -type d ! -name RCS ! -name SCCS ! -name CVS -print` ; \ |
393 do (cd $${subdir} && $(RM) -r RCS CVS SCCS \#* *~) ; done ; \ | 390 do (cd $${subdir} && $(RM) -r RCS CVS SCCS \#* *~) ; done ; \ |
394 else true; fi | 391 else true; fi |
395 ${INSTALL_PROGRAM} src/${PROGNAME} ${bindir}/${PROGNAME}-${version} | 392 ${INSTALL_PROGRAM} src/${PROGNAME} ${bindir}/${PROGNAME}-${version} |
396 -chmod 0755 ${bindir}/${PROGNAME}-${version} | 393 -chmod 0755 ${bindir}/${PROGNAME}-${version} |
397 cd ${bindir} && $(RM) ./${PROGNAME} && ${LN_S} ${PROGNAME}-${version}@exe_suffix@ ./${PROGNAME} | 394 cd ${bindir} && $(RM) ./${PROGNAME} && ${LN_S} ${PROGNAME}-${version} ./${PROGNAME} |
398 if test "${prefix}" != "${exec_prefix}"; then \ | 395 if test "${prefix}" != "${exec_prefix}"; then \ |
399 for dir in \ | 396 for dir in \ |
400 lib/${PROGNAME} \ | 397 lib/${PROGNAME} \ |
401 lib/${PROGNAME}-${version}/etc \ | 398 lib/${PROGNAME}-${version}/etc \ |
402 lib/${PROGNAME}-${version}/info \ | 399 lib/${PROGNAME}-${version}/info \ |
423 dest=$$1 ; shift ; \ | 420 dest=$$1 ; shift ; \ |
424 test -d $${dir} \ | 421 test -d $${dir} \ |
425 -a "`(cd $${dir} && $(pwd))`" != \ | 422 -a "`(cd $${dir} && $(pwd))`" != \ |
426 "`(cd $${dest} && $(pwd))`" \ | 423 "`(cd $${dest} && $(pwd))`" \ |
427 && (echo "Copying $${dir}..." ; \ | 424 && (echo "Copying $${dir}..." ; \ |
428 (cd $${dir} && $(TAR) -cf - . ) | \ | 425 (cd $${dir} && tar -cf - . ) | \ |
429 (cd $${dest} && umask 022 && $(TAR) -xf - );\ | 426 (cd $${dest} && umask 022 && tar -xf - );\ |
430 chmod 0755 $${dest}; \ | 427 chmod 0755 $${dest}; \ |
431 for subdir in `find $${dest} -type d ! -name RCS ! -name SCCS ! -name CVS -print` ; do \ | 428 for subdir in `find $${dest} -type d ! -name RCS ! -name SCCS ! -name CVS -print` ; do \ |
432 (cd $${subdir} && $(RM) -r RCS CVS SCCS \#* *~) ; \ | 429 (cd $${subdir} && $(RM) -r RCS CVS SCCS \#* *~) ; \ |
433 done) ; \ | 430 done) ; \ |
434 done | 431 done |
462 ## Build all the directories to install XEmacs in. | 459 ## Build all the directories to install XEmacs in. |
463 ## Since we may be creating several layers of directories, | 460 ## Since we may be creating several layers of directories, |
464 ## (e.g. /usr/local/lib/${PROGNAME}-20.5/sparc-sun-solaris2.6), we use | 461 ## (e.g. /usr/local/lib/${PROGNAME}-20.5/sparc-sun-solaris2.6), we use |
465 ## make-path instead of mkdir. Not all mkdirs have the `-p' flag. | 462 ## make-path instead of mkdir. Not all mkdirs have the `-p' flag. |
466 mkdir: FRC.mkdir | 463 mkdir: FRC.mkdir |
467 ${MAKEPATH} ${COPYDESTS} ${lockdir} $(docdir) ${infodir} ${archlibdir} \ | 464 ${MAKEPATH} ${COPYDESTS} ${lockdir} ${infodir} ${archlibdir} \ |
468 ${mandir} ${bindir} ${datadir} ${libdir} ${pkgdir} | 465 ${mandir} ${bindir} ${datadir} ${libdir} ${pkgdir} |
469 -chmod 0777 ${lockdir} | 466 -chmod 0777 ${lockdir} |
470 | 467 |
471 ## Delete all the installed files that the `install' target would | 468 ## Delete all the installed files that the `install' target would |
472 ## create (but not the noninstalled files such as `make all' would | 469 ## create (but not the noninstalled files such as `make all' would |
599 cd ./lisp/term && chmod u+w README *.el | 596 cd ./lisp/term && chmod u+w README *.el |
600 cd ./man && chmod u+w *texi* ChangeLog split-man | 597 cd ./man && chmod u+w *texi* ChangeLog split-man |
601 cd ./lwlib && chmod u+w *.[ch] Makefile.in.in | 598 cd ./lwlib && chmod u+w *.[ch] Makefile.in.in |
602 | 599 |
603 PRUNE_VC = -name SCCS -prune -o -name RCS -prune -o -name CVS -prune -o | 600 PRUNE_VC = -name SCCS -prune -o -name RCS -prune -o -name CVS -prune -o |
604 tagslisp = lisp | |
605 TAGS tags: FRC.tags | 601 TAGS tags: FRC.tags |
606 @echo "If you don't have a copy of etags around, then do 'make lib-src' first." | 602 @echo "If you don't have a copy of etags around, then do 'make lib-src' first." |
607 $(RM) ${srcdir}/TAGS | 603 $(RM) ${srcdir}/TAGS |
608 @PATH=`$(pwd)`/lib-src:$$PATH HOME=/-=-; export PATH HOME; \ | 604 @PATH=`$(pwd)`/lib-src:$$PATH HOME=/-=-; export PATH HOME; \ |
609 echo "Using etags from `which etags`." | 605 echo "Using etags from `which etags`." |
610 PATH=`$(pwd)`/lib-src:$$PATH ; export PATH; cd ${srcdir} && \ | 606 PATH=`$(pwd)`/lib-src:$$PATH ; export PATH; cd ${srcdir} && \ |
611 find src lwlib lib-src ${PRUNE_VC} -name '*.[ch]' -print | \ | 607 find src lwlib lib-src ${PRUNE_VC} -name '*.[ch]' -print | \ |
612 xargs etags -a -r '/[ ]*DEF\(VAR\|INE\)_[A-Z_]+[ ]*([ ]*"\([^"]+\)"/\2/'; \ | 608 xargs etags -a -r '/[ ]*DEF\(VAR\|INE\)_[A-Z_]+[ ]*([ ]*"\([^"]+\)"/\2/'; \ |
613 find ${tagslisp} ${PRUNE_VC} -name '*.el' -print | \ | 609 find lisp ${PRUNE_VC} -name '*.el' -print | \ |
614 xargs etags -a -l none -r "/^(def\\(var\\|un\\|alias\\|const\\|macro\\)[ ]+'?\\([^ ]+\\)/\\2/" | 610 xargs etags -a -l none -r "/^(def\\(var\\|un\\|alias\\|const\\|macro\\)[ ]+'?\\([^ ]+\\)/\\2/" |
615 | 611 |
616 ## We have automated tests! | 612 ## We have automated tests! |
617 testdir = ${srcdir}/tests | 613 testdir = ${srcdir}/tests |
618 tests = ${testdir}/basic-lisp.el ${testdir}/database.el ${testdir}/mule-tests.el | 614 tests = ${testdir}/basic-lisp.el ${testdir}/database.el |
619 | 615 |
620 check: | 616 check: |
621 src/${PROGNAME} -batch -l ${testdir}/test-emacs.el -f batch-test-emacs ${tests} | 617 src/${PROGNAME} -batch -l ${testdir}/test-emacs.el -f batch-test-emacs ${tests} |
622 | 618 |
623 info: FRC.info | 619 info: FRC.info |