comparison Makefile.in @ 284:558f606b08ae r21-0b40

Import from CVS: tag r21-0b40
author cvs
date Mon, 13 Aug 2007 10:34:13 +0200
parents 7df0dd720c89
children c6de09ad3017
comparison
equal deleted inserted replaced
283:fa3d41851a08 284:558f606b08ae
254 all-elc all-elcs: lib-src lwlib dump-elcs src 254 all-elc all-elcs: lib-src lwlib dump-elcs src
255 MAKE='$(MAKE)' EMACS='./src/$(PROGNAME)' sh ${srcdir}/lib-src/update-elc.sh 255 MAKE='$(MAKE)' EMACS='./src/$(PROGNAME)' sh ${srcdir}/lib-src/update-elc.sh
256 256
257 ## Sub-target for all-elc. 257 ## Sub-target for all-elc.
258 dump-elc dump-elcs: ${GENERATED_HEADERS} FRC.dump-elcs 258 dump-elc dump-elcs: ${GENERATED_HEADERS} FRC.dump-elcs
259 cd src && $(RECURSIVE_MAKE) dump-elcs 259 cd ./src && $(RECURSIVE_MAKE) dump-elcs
260 260
261 autoloads: src 261 autoloads: src
262 MAKE='$(MAKE)' EMACS='./src/$(PROGNAME)' sh ${srcdir}/lib-src/update-autoloads.sh 262 MAKE='$(MAKE)' EMACS='./src/$(PROGNAME)' sh ${srcdir}/lib-src/update-autoloads.sh
263 263
264 custom-loads: 264 custom-loads:
265 MAKE='$(MAKE)' EMACS='./src/$(PROGNAME)' sh ${srcdir}/lib-src/update-custom.sh 265 MAKE='$(MAKE)' EMACS='./src/$(PROGNAME)' sh ${srcdir}/lib-src/update-custom.sh
266 266
267 finder: src 267 finder: src
268 @echo "Building finder database ..." 268 @echo "Building finder database ..."
269 @(cd lisp; \ 269 @(cd ./lisp; \
270 ${blddir}/src/${PROGNAME} -batch -vanilla \ 270 ${blddir}/src/${PROGNAME} -batch -vanilla \
271 -eval '(setq finder-compile-keywords-quiet t)' \ 271 -eval '(setq finder-compile-keywords-quiet t)' \
272 -l finder -f finder-compile-keywords ) 272 -l finder -f finder-compile-keywords )
273 @echo "Building finder database ...(done)" 273 @echo "Building finder database ...(done)"
274 274
275 lisp/finder-inf.el: 275 lisp/finder-inf.el:
276 @echo "Building finder database ..." 276 @echo "Building finder database ..."
277 @(cd lisp; \ 277 @(cd ./lisp; \
278 ${blddir}/src/${PROGNAME} -batch -vanilla \ 278 ${blddir}/src/${PROGNAME} -batch -vanilla \
279 -eval '(setq finder-compile-keywords-quiet t)' \ 279 -eval '(setq finder-compile-keywords-quiet t)' \
280 -l finder -f finder-compile-keywords ) 280 -l finder -f finder-compile-keywords )
281 @echo "Building finder database ...(done)" 281 @echo "Building finder database ...(done)"
282 282
311 dynodump: FRC.dynodump 311 dynodump: FRC.dynodump
312 FRC.src FRC.lib-src FRC.lwlib FRC.dynodump pkg-src/FRC.tree-x: 312 FRC.src FRC.lib-src FRC.lwlib FRC.dynodump pkg-src/FRC.tree-x:
313 FRC.lisp.finder-inf.el: 313 FRC.lisp.finder-inf.el:
314 314
315 ${SUBDIR}: ${SUBDIR_MAKEFILES} ${GENERATED_HEADERS} FRC 315 ${SUBDIR}: ${SUBDIR_MAKEFILES} ${GENERATED_HEADERS} FRC
316 cd $@ && $(RECURSIVE_MAKE) all 316 cd ./$@ && $(RECURSIVE_MAKE) all
317 317
318 Makefile: ${srcdir}/Makefile.in config.status 318 Makefile: ${srcdir}/Makefile.in config.status
319 ./config.status 319 ./config.status
320 320
321 src/Makefile: ${srcdir}/src/Makefile.in.in ${srcdir}/src/depend config.status 321 src/Makefile: ${srcdir}/src/Makefile.in.in ${srcdir}/src/depend config.status
372 372
373 install: all check-features install-arch-dep install-arch-indep 373 install: all check-features install-arch-dep install-arch-indep
374 374
375 install-arch-dep: mkdir 375 install-arch-dep: mkdir
376 for subdir in ${INSTALL_ARCH_DEP_SUBDIR}; do \ 376 for subdir in ${INSTALL_ARCH_DEP_SUBDIR}; do \
377 ( cd $${subdir} && $(RECURSIVE_MAKE) install prefix=${prefix} \ 377 (cd ./$${subdir} && $(RECURSIVE_MAKE) install prefix=${prefix} \
378 exec_prefix=${exec_prefix} bindir=${bindir} libdir=${libdir} \ 378 exec_prefix=${exec_prefix} bindir=${bindir} libdir=${libdir} \
379 archlibdir=${archlibdir} ) ; done 379 archlibdir=${archlibdir}) ; done
380 if test `(cd ${archlibdir} && $(pwd))` != `(cd lib-src && $(pwd))`; then \ 380 if test "`(cd ${archlibdir} && $(pwd))`" != \
381 "`(cd ./lib-src && $(pwd))`"; then \
381 if test -f ../Installation; then \ 382 if test -f ../Installation; then \
382 ${INSTALL_DATA} ../Installation ${archlibdir}/Installation; \ 383 ${INSTALL_DATA} ../Installation ${archlibdir}/Installation; \
383 fi; \ 384 fi; \
384 for f in DOC config.values; do \ 385 for f in DOC config.values; do \
385 ${INSTALL_DATA} lib-src/$${f} ${archlibdir}/$${f}; \ 386 ${INSTALL_DATA} lib-src/$${f} ${archlibdir}/$${f}; \
402 fi 403 fi
403 404
404 install-arch-indep: mkdir info 405 install-arch-indep: mkdir info
405 -@set ${COPYDESTS} ; \ 406 -@set ${COPYDESTS} ; \
406 for dir in ${COPYDIR} ; do \ 407 for dir in ${COPYDIR} ; do \
407 if [ `(cd $$1 && $(pwd))` != `(cd $${dir} && $(pwd))` ] ; then \ 408 if test "`(cd $$1 && $(pwd))`" != \
409 "`(cd $${dir} && $(pwd))`"; then \
408 : do nothing - echo "rm -rf $$1" ; \ 410 : do nothing - echo "rm -rf $$1" ; \
409 fi ; \ 411 fi ; \
410 shift ; \ 412 shift ; \
411 done 413 done
412 -set ${COPYDESTS} ; \ 414 -set ${COPYDESTS} ; \
414 if test ! -d $${dir} ; then mkdir $${dir} ; fi ; \ 416 if test ! -d $${dir} ; then mkdir $${dir} ; fi ; \
415 done ; \ 417 done ; \
416 for dir in ${COPYDIR} ; do \ 418 for dir in ${COPYDIR} ; do \
417 dest=$$1 ; shift ; \ 419 dest=$$1 ; shift ; \
418 test -d $${dir} \ 420 test -d $${dir} \
419 -a `(cd $${dir} && $(pwd))` != `(cd $${dest} && $(pwd))` \ 421 -a "`(cd $${dir} && $(pwd))`" != \
422 "`(cd $${dest} && $(pwd))`" \
420 && (echo "Copying $${dir}..." ; \ 423 && (echo "Copying $${dir}..." ; \
421 (cd $${dir} && tar -cf - . ) | \ 424 (cd $${dir} && tar -cf - . ) | \
422 (cd $${dest} && umask 022 && tar -xf - );\ 425 (cd $${dest} && umask 022 && tar -xf - );\
423 chmod 0755 $${dest}; \ 426 chmod 0755 $${dest}; \
424 for subdir in `find $${dest} -type d ! -name RCS ! -name SCCS ! -name CVS -print` ; do \ 427 for subdir in `find $${dest} -type d ! -name RCS ! -name SCCS ! -name CVS -print` ; do \
425 (cd $${subdir} && $(RM) -r RCS CVS SCCS \#* *~) ; \ 428 (cd $${subdir} && $(RM) -r RCS CVS SCCS \#* *~) ; \
426 done) ; \ 429 done) ; \
427 done 430 done
428 if test `(cd ${srcdir}/info && $(pwd))` != `(cd ${infodir} && $(pwd))` && cd ${srcdir}/info; then \ 431 if test "`(cd ${srcdir}/info && $(pwd))`" != \
432 "`(cd ${infodir} && $(pwd))`" && cd ${srcdir}/info; then \
429 if test ! -f ${infodir}/dir -a -f dir ; then \ 433 if test ! -f ${infodir}/dir -a -f dir ; then \
430 ${INSTALL_DATA} ${srcdir}/info/dir ${infodir}/dir ; \ 434 ${INSTALL_DATA} ${srcdir}/info/dir ${infodir}/dir ; \
431 fi ; \ 435 fi ; \
432 for file in *.info* ; do \ 436 for file in *.info* ; do \
433 ${INSTALL_DATA} $${file} ${infodir}/$${file} ; \ 437 ${INSTALL_DATA} $${file} ${infodir}/$${file} ; \
466 470
467 #### Don't delete the lisp and etc directories if they're in the source tree. 471 #### Don't delete the lisp and etc directories if they're in the source tree.
468 #### This target has not been updated in sometime and until it is it 472 #### This target has not been updated in sometime and until it is it
469 #### would be extremely dangerous for anyone to use it. 473 #### would be extremely dangerous for anyone to use it.
470 #uninstall: 474 #uninstall:
471 # (cd lib-src; \ 475 # (cd ./lib-src; \
472 # $(RECURSIVE_MAKE) uninstall \ 476 # $(RECURSIVE_MAKE) uninstall \
473 # prefix=${prefix} exec_prefix=${exec_prefix} \ 477 # prefix=${prefix} exec_prefix=${exec_prefix} \
474 # bindir=${bindir} libdir=${libdir} archlibdir=${archlibdir}) 478 # bindir=${bindir} libdir=${libdir} archlibdir=${archlibdir})
475 # for dir in ${lispdir} ${etcdir} ; do \ 479 # for dir in ${lispdir} ${etcdir} ; do \
476 # case `(cd $${dir} ; $(pwd))` in \ 480 # case `(cd $${dir} ; $(pwd))` in \
501 ## Like `clean', but may refrain from deleting a few files that people 505 ## Like `clean', but may refrain from deleting a few files that people
502 ## normally don't want to recompile. For example, the `mostlyclean' 506 ## normally don't want to recompile. For example, the `mostlyclean'
503 ## target for GCC does not delete `libgcc.a', because recompiling it 507 ## target for GCC does not delete `libgcc.a', because recompiling it
504 ## is rarely necessary and takes a lot of time. 508 ## is rarely necessary and takes a lot of time.
505 mostlyclean: FRC.mostlyclean 509 mostlyclean: FRC.mostlyclean
506 for d in $(SUBDIR); do (cd $$d && $(RECURSIVE_MAKE) $@); done 510 for d in $(SUBDIR); do (cd ./$$d && $(RECURSIVE_MAKE) $@); done
507 511
508 ## `clean' 512 ## `clean'
509 ## Delete all files from the current directory that are normally 513 ## Delete all files from the current directory that are normally
510 ## created by building the program. Don't delete the files that 514 ## created by building the program. Don't delete the files that
511 ## record the configuration. Also preserve files that could be made 515 ## record the configuration. Also preserve files that could be made
512 ## by building, but normally aren't because the distribution comes 516 ## by building, but normally aren't because the distribution comes
513 ## with them. 517 ## with them.
514 518
515 ## Delete `.dvi' files here if they are not part of the distribution. 519 ## Delete `.dvi' files here if they are not part of the distribution.
516 clean: FRC.clean 520 clean: FRC.clean
517 for d in $(SUBDIR); do (cd $$d && $(RECURSIVE_MAKE) $@); done 521 for d in $(SUBDIR); do (cd ./$$d && $(RECURSIVE_MAKE) $@); done
518 $(RM) core 522 $(RM) core
519 523
520 ## `distclean' 524 ## `distclean'
521 ## Delete all files from the current directory that are created by 525 ## Delete all files from the current directory that are created by
522 ## configuring or building the program. If you have unpacked the 526 ## configuring or building the program. If you have unpacked the
531 $(RM) core .sbinit Makefile lock/*; \ 535 $(RM) core .sbinit Makefile lock/*; \
532 $(RM) lisp/finder-inf.el* Installation.el Installation.elc; \ 536 $(RM) lisp/finder-inf.el* Installation.el Installation.elc; \
533 $(RM) packages mule-packages site-lisp 537 $(RM) packages mule-packages site-lisp
534 538
535 distclean: FRC.distclean 539 distclean: FRC.distclean
536 for d in $(SUBDIR); do (cd $$d && $(RECURSIVE_MAKE) $@); done 540 for d in $(SUBDIR); do (cd ./$$d && $(RECURSIVE_MAKE) $@); done
537 -${top_distclean} 541 -${top_distclean}
538 542
539 ## `realclean' 543 ## `realclean'
540 ## Delete everything from the current directory that can be 544 ## Delete everything from the current directory that can be
541 ## reconstructed with this Makefile. This typically includes 545 ## reconstructed with this Makefile. This typically includes
546 ## `configure' even if `configure' can be remade using a rule in the 550 ## `configure' even if `configure' can be remade using a rule in the
547 ## Makefile. More generally, `make realclean' should not delete 551 ## Makefile. More generally, `make realclean' should not delete
548 ## anything that needs to exist in order to run `configure' and then 552 ## anything that needs to exist in order to run `configure' and then
549 ## begin to build the program. 553 ## begin to build the program.
550 realclean: FRC.realclean 554 realclean: FRC.realclean
551 for d in $(SUBDIR); do (cd $$d && $(RECURSIVE_MAKE) $@); done 555 for d in $(SUBDIR); do (cd ./$$d && $(RECURSIVE_MAKE) $@); done
552 -${top_distclean} 556 -${top_distclean}
553 $(RM) TAGS 557 $(RM) TAGS
554 558
555 ## This doesn't actually appear in the coding standards, but Karl 559 ## This doesn't actually appear in the coding standards, but Karl
556 ## says GCC supports it, and that's where the configuration part of 560 ## says GCC supports it, and that's where the configuration part of
557 ## the coding standards seem to come from. It's like distclean, but 561 ## the coding standards seem to come from. It's like distclean, but
558 ## it deletes backup and autosave files too. 562 ## it deletes backup and autosave files too.
559 extraclean: 563 extraclean:
560 for d in $(SUBDIR); do (cd $$d && $(RECURSIVE_MAKE) $@); done 564 for d in $(SUBDIR); do (cd ./$$d && $(RECURSIVE_MAKE) $@); done
561 $(RM) *~ \#* 565 $(RM) *~ \#*
562 -${top_distclean} 566 -${top_distclean}
563 567
564 ## Unlocking and relocking. The idea of these productions is to reduce 568 ## Unlocking and relocking. The idea of these productions is to reduce
565 ## hassles when installing an incremental tar of XEmacs. Do `make unlock' 569 ## hassles when installing an incremental tar of XEmacs. Do `make unlock'
576 580
577 .PHONY: unlock relock TAGS tags check dist info dvi mcs 581 .PHONY: unlock relock TAGS tags check dist info dvi mcs
578 582
579 unlock: 583 unlock:
580 chmod u+w $(SOURCES) cpp/* 584 chmod u+w $(SOURCES) cpp/*
581 -cd elisp && chmod u+w Makefile README *.texi 585 -cd ./elisp && chmod u+w Makefile README *.texi
582 for d in src etc lib-src lisp; do (cd $$d && $(RECURSIVE_MAKE) $@); done 586 for d in src etc lib-src lisp; do (cd ./$$d && $(RECURSIVE_MAKE) $@); done
583 cd lisp/term && chmod u+w README *.el 587 cd ./lisp/term && chmod u+w README *.el
584 cd man && chmod u+w *texi* ChangeLog split-man 588 cd ./man && chmod u+w *texi* ChangeLog split-man
585 cd lwlib && chmod u+w *.[ch] Makefile.in.in 589 cd ./lwlib && chmod u+w *.[ch] Makefile.in.in
586 590
587 relock: 591 relock:
588 chmod u-w $(SOURCES) cpp/* 592 chmod u-w $(SOURCES) cpp/*
589 -cd elisp && chmod u-w Makefile README *.texi 593 -cd ./elisp && chmod u-w Makefile README *.texi
590 for d in src etc lib-src lisp; do (cd $$d && $(RECURSIVE_MAKE) $@); done 594 for d in src etc lib-src lisp; do (cd ./$$d && $(RECURSIVE_MAKE) $@); done
591 cd lisp/term && chmod u+w README *.el 595 cd ./lisp/term && chmod u+w README *.el
592 cd man && chmod u+w *texi* ChangeLog split-man 596 cd ./man && chmod u+w *texi* ChangeLog split-man
593 cd lwlib && chmod u+w *.[ch] Makefile.in.in 597 cd ./lwlib && chmod u+w *.[ch] Makefile.in.in
594 598
599 PRUNE_VC = -name SCCS -prune -o -name RCS -prune -o -name CVS -prune -o
595 TAGS tags: FRC.tags 600 TAGS tags: FRC.tags
596 @echo "If you don't have a copy of etags around, then do 'make lib-src' first." 601 @echo "If you don't have a copy of etags around, then do 'make lib-src' first."
602 $(RM) ${srcdir}/TAGS
597 @PATH=`$(pwd)`/lib-src:$$PATH HOME=/-=-; export PATH HOME; \ 603 @PATH=`$(pwd)`/lib-src:$$PATH HOME=/-=-; export PATH HOME; \
598 echo "Using etags from `which etags`." 604 echo "Using etags from `which etags`."
599 PATH=`$(pwd)`/lib-src:$$PATH ; export PATH; cd ${srcdir} && \ 605 PATH=`$(pwd)`/lib-src:$$PATH ; export PATH; cd ${srcdir} && \
600 etags --regex='/[ ]*DEF\(VAR\|INE\)_[A-Z_]+[ ]*([ ]*"\([^"]+\)"/\2/' src/*.[ch] ; \ 606 find src lwlib lib-src ${PRUNE_VC} -name '*.[ch]' -print | \
601 for d in `find lisp -name SCCS -prune -o -name RCS -prune -o -type d -print` ; do \ 607 xargs etags -a -r '/[ ]*DEF\(VAR\|INE\)_[A-Z_]+[ ]*([ ]*"\([^"]+\)"/\2/'; \
602 (cd $$d && if [ "`echo *.el`" != "*.el" ] ; then etags -a -o ${srcdir}/TAGS *.el ; fi ) ; \ 608 find lisp ${PRUNE_VC} -name '*.el' -print | \
603 done ; \ 609 xargs etags -a -l none -r "/^(def\\(var\\|un\\|alias\\|const\\|macro\\)[ ]+'?\\([^ ]+\\)/\\2/"
604 etags -a lwlib/*.[ch]
605 610
606 ## We have automated tests! 611 ## We have automated tests!
607 testdir = ${srcdir}/tests 612 testdir = ${srcdir}/tests
608 tests = ${testdir}/basic-lisp.el ${testdir}/database.el 613 tests = ${testdir}/basic-lisp.el ${testdir}/database.el
609 614