comparison Makefile.in @ 173:8eaf7971accc r20-3b13

Import from CVS: tag r20-3b13
author cvs
date Mon, 13 Aug 2007 09:49:09 +0200
parents 929b76928fce
children 2d532a89d707
comparison
equal deleted inserted replaced
172:a38aed19690b 173:8eaf7971accc
47 ## produced by Bison, tags tables, info files, and so on. 47 ## produced by Bison, tags tables, info files, and so on.
48 48
49 ## make extraclean 49 ## make extraclean
50 ## Still more severe - delete backup and autosave files, too. 50 ## Still more severe - delete backup and autosave files, too.
51 51
52 @SET_MAKE@
53 RECURSIVE_MAKE=@RECURSIVE_MAKE@
52 SHELL = /bin/sh 54 SHELL = /bin/sh
53 @SET_MAKE@ 55 RM = rm -f
56 pwd = /bin/pwd
54 57
55 ## ==================== Things `configure' Might Edit ==================== 58 ## ==================== Things `configure' Might Edit ====================
56 59
57 CC=@CC@ 60 CC=@CC@
58 CPP=@CPP@ 61 CPP=@CPP@
59 LN_S=@LN_S@ 62 LN_S=@LN_S@
60 CFLAGS=@CFLAGS@ 63 CFLAGS=@CFLAGS@
61 YACC=@YACC@
62 pwd=/bin/pwd
63 RM=rm -f
64 64
65 ## These help us choose version- and architecture-specific directories 65 ## These help us choose version- and architecture-specific directories
66 ## to install files in. 66 ## to install files in.
67 67
68 ## This should be the number of the XEmacs version we're building, 68 ## This should be the number of the XEmacs version we're building,
227 227
228 .NO_PARALLEL: ${GENERATED_HEADERS} ${MAKE_SUBDIR} dump-elcs 228 .NO_PARALLEL: ${GENERATED_HEADERS} ${MAKE_SUBDIR} dump-elcs
229 .PHONY: ${SUBDIR} all beta all-elc all-elcs dump-elc dump-elcs autoloads 229 .PHONY: ${SUBDIR} all beta all-elc all-elcs dump-elc dump-elcs autoloads
230 230
231 ## Convenience target for XEmacs beta testers 231 ## Convenience target for XEmacs beta testers
232 beta: clean all-elc 232 beta: clean all-elc
233 233
234 ## Convenience target for XEmacs maintainers 234 ## Convenience target for XEmacs maintainers
235 ## This would run `make-xemacsdist' if I were really confident that everything 235 ## This would run `make-xemacsdist' if I were really confident that everything
236 ## was turnkey. 236 ## was turnkey.
237 dist: all-elc info 237 dist: all-elc info
238 238
239 ## Build XEmacs and recompile out-of-date and missing .elc files along 239 ## Build XEmacs and recompile out-of-date and missing .elc files along
240 ## the way. 240 ## the way.
241 all-elc all-elcs: lib-src lwlib dump-elcs src 241 all-elc all-elcs: lib-src lwlib dump-elcs src
242 MAKE='$(MAKE)' sh ${srcdir}/lib-src/update-elc.sh 242 MAKE='$(MAKE)' sh ${srcdir}/lib-src/update-elc.sh
243 243
244 ## Sub-target for all-elc. 244 ## Sub-target for all-elc.
245 dump-elc dump-elcs: ${GENERATED_HEADERS} FRC.dump-elcs 245 dump-elc dump-elcs: ${GENERATED_HEADERS} FRC.dump-elcs
246 cd src && $(MAKE) dump-elcs $(MFLAGS) \ 246 cd src && $(RECURSIVE_MAKE) dump-elcs
247 CC='${CC}' CFLAGS='${CFLAGS}' MAKE='${MAKE}' 247
248 248 autoloads: src
249 autoloads: src
250 MAKE='$(MAKE)' sh ${srcdir}/lib-src/update-autoloads.sh 249 MAKE='$(MAKE)' sh ${srcdir}/lib-src/update-autoloads.sh
251 250
252 ## We force the rebuilding of src/paths.h because the user might give 251 ## We force the rebuilding of src/paths.h because the user might give
253 ## different values for the various directories. Since we use 252 ## different values for the various directories. Since we use
254 ## move-if-change, src/paths.h only actually changes if the user did 253 ## move-if-change, src/paths.h only actually changes if the user did
299 @echo "Resetting \`src/puresize_adjust.h'."; \ 298 @echo "Resetting \`src/puresize_adjust.h'."; \
300 (echo "/* Do not edit this file!" ; \ 299 (echo "/* Do not edit this file!" ; \
301 echo " Automatically generated by XEmacs */" ; \ 300 echo " Automatically generated by XEmacs */" ; \
302 echo "#define PURESIZE_ADJUSTMENT 0") > $@ 301 echo "#define PURESIZE_ADJUSTMENT 0") > $@
303 302
304 src: @SRC_SUBDIR_DEPS@ FRC.src 303 src: @SRC_SUBDIR_DEPS@ FRC.src
305 pkg-src/tree-x: pkg-src/FRC.tree-x 304 pkg-src/tree-x: pkg-src/FRC.tree-x
306 lib-src: FRC.lib-src 305 lib-src: FRC.lib-src
307 lwlib: FRC.lwlib 306 lwlib: FRC.lwlib
308 dynodump: FRC.dynodump 307 dynodump: FRC.dynodump
309 FRC.src FRC.lib-src FRC.lwlib FRC.dynodump pkg-src/FRC.tree-x: 308 FRC.src FRC.lib-src FRC.lwlib FRC.dynodump pkg-src/FRC.tree-x:
310 309
311 .RECURSIVE: ${SUBDIR} 310 .RECURSIVE: ${SUBDIR}
312 311
313 ${SUBDIR}: ${SUBDIR_MAKEFILES} ${GENERATED_HEADERS} FRC 312 ${SUBDIR}: ${SUBDIR_MAKEFILES} ${GENERATED_HEADERS} FRC
314 cd $@ && $(MAKE) all $(MFLAGS) \ 313 cd $@ && $(RECURSIVE_MAKE) all
315 CC='${CC}' CFLAGS='${CFLAGS}' MAKE='${MAKE}'
316 314
317 Makefile: ${srcdir}/Makefile.in config.status 315 Makefile: ${srcdir}/Makefile.in config.status
318 ./config.status 316 ./config.status
319 317
320 src/Makefile: ${srcdir}/src/Makefile.in.in config.status 318 src/Makefile: ${srcdir}/src/Makefile.in.in config.status
364 362
365 install: all install-arch-dep install-arch-indep; 363 install: all install-arch-dep install-arch-indep;
366 364
367 install-arch-dep: mkdir 365 install-arch-dep: mkdir
368 for subdir in ${INSTALL_ARCH_DEP_SUBDIR}; do \ 366 for subdir in ${INSTALL_ARCH_DEP_SUBDIR}; do \
369 ( cd $${subdir} && $(MAKE) install $(MFLAGS) prefix=${prefix} \ 367 ( cd $${subdir} && $(RECURSIVE_MAKE) install prefix=${prefix} \
370 exec_prefix=${exec_prefix} bindir=${bindir} libdir=${libdir} \ 368 exec_prefix=${exec_prefix} bindir=${bindir} libdir=${libdir} \
371 archlibdir=${archlibdir} ) ; done 369 archlibdir=${archlibdir} ) ; done
372 if test `(cd ${archlibdir} && $(pwd))` != `(cd lib-src && $(pwd))`; then \ 370 if test `(cd ${archlibdir} && $(pwd))` != `(cd lib-src && $(pwd))`; then \
373 ${INSTALL_DATA} lib-src/DOC ${archlibdir}/DOC ; \ 371 ${INSTALL_DATA} lib-src/DOC ${archlibdir}/DOC ; \
374 for subdir in `find ${archlibdir} -type d ! -name RCS ! -name SCCS ! -name CVS -print` ; \ 372 for subdir in `find ${archlibdir} -type d ! -name RCS ! -name SCCS ! -name CVS -print` ; \
441 #### Don't delete the lisp and etc directories if they're in the source tree. 439 #### Don't delete the lisp and etc directories if they're in the source tree.
442 #### This target has not been updated in sometime and until it is it 440 #### This target has not been updated in sometime and until it is it
443 #### would be extremely dangerous for anyone to use it. 441 #### would be extremely dangerous for anyone to use it.
444 #uninstall: 442 #uninstall:
445 # (cd lib-src; \ 443 # (cd lib-src; \
446 # $(MAKE) $(MFLAGS) uninstall \ 444 # $(RECURSIVE_MAKE) uninstall \
447 # prefix=${prefix} exec_prefix=${exec_prefix} \ 445 # prefix=${prefix} exec_prefix=${exec_prefix} \
448 # bindir=${bindir} libdir=${libdir} archlibdir=${archlibdir}) 446 # bindir=${bindir} libdir=${libdir} archlibdir=${archlibdir})
449 # for dir in ${lispdir} ${etcdir} ; do \ 447 # for dir in ${lispdir} ${etcdir} ; do \
450 # case `(cd $${dir} ; $(pwd))` in \ 448 # case `(cd $${dir} ; $(pwd))` in \
451 # `(cd ${srcdir} ; $(pwd))`* ) ;; \ 449 # `(cd ${srcdir} ; $(pwd))`* ) ;; \
475 ## Like `clean', but may refrain from deleting a few files that people 473 ## Like `clean', but may refrain from deleting a few files that people
476 ## normally don't want to recompile. For example, the `mostlyclean' 474 ## normally don't want to recompile. For example, the `mostlyclean'
477 ## target for GCC does not delete `libgcc.a', because recompiling it 475 ## target for GCC does not delete `libgcc.a', because recompiling it
478 ## is rarely necessary and takes a lot of time. 476 ## is rarely necessary and takes a lot of time.
479 mostlyclean: FRC.mostlyclean 477 mostlyclean: FRC.mostlyclean
480 for d in $(SUBDIR); do (cd $$d && $(MAKE) $(MFLAGS) $@); done 478 for d in $(SUBDIR); do (cd $$d && $(RECURSIVE_MAKE) $@); done
481 479
482 ## `clean' 480 ## `clean'
483 ## Delete all files from the current directory that are normally 481 ## Delete all files from the current directory that are normally
484 ## created by building the program. Don't delete the files that 482 ## created by building the program. Don't delete the files that
485 ## record the configuration. Also preserve files that could be made 483 ## record the configuration. Also preserve files that could be made
486 ## by building, but normally aren't because the distribution comes 484 ## by building, but normally aren't because the distribution comes
487 ## with them. 485 ## with them.
488 486
489 ## Delete `.dvi' files here if they are not part of the distribution. 487 ## Delete `.dvi' files here if they are not part of the distribution.
490 clean: FRC.clean 488 clean: FRC.clean
491 for d in $(SUBDIR); do (cd $$d && $(MAKE) $(MFLAGS) $@); done 489 for d in $(SUBDIR); do (cd $$d && $(RECURSIVE_MAKE) $@); done
492 $(RM) core 490 $(RM) core
493 491
494 ## `distclean' 492 ## `distclean'
495 ## Delete all files from the current directory that are created by 493 ## Delete all files from the current directory that are created by
496 ## configuring or building the program. If you have unpacked the 494 ## configuring or building the program. If you have unpacked the
504 done ; \ 502 done ; \
505 $(RM) core .sbinit Makefile lock/* 503 $(RM) core .sbinit Makefile lock/*
506 504
507 distclean: FRC.distclean 505 distclean: FRC.distclean
508 for d in lock site-lisp; do test -d $$d || mkdir $$d; done 506 for d in lock site-lisp; do test -d $$d || mkdir $$d; done
509 for d in $(SUBDIR); do (cd $$d && $(MAKE) $(MFLAGS) $@); done 507 for d in $(SUBDIR); do (cd $$d && $(RECURSIVE_MAKE) $@); done
510 -${top_distclean} 508 -${top_distclean}
511 509
512 ## `realclean' 510 ## `realclean'
513 ## Delete everything from the current directory that can be 511 ## Delete everything from the current directory that can be
514 ## reconstructed with this Makefile. This typically includes 512 ## reconstructed with this Makefile. This typically includes
519 ## `configure' even if `configure' can be remade using a rule in the 517 ## `configure' even if `configure' can be remade using a rule in the
520 ## Makefile. More generally, `make realclean' should not delete 518 ## Makefile. More generally, `make realclean' should not delete
521 ## anything that needs to exist in order to run `configure' and then 519 ## anything that needs to exist in order to run `configure' and then
522 ## begin to build the program. 520 ## begin to build the program.
523 realclean: FRC.realclean 521 realclean: FRC.realclean
524 for d in $(SUBDIR); do (cd $$d && $(MAKE) $(MFLAGS) $@); done 522 for d in $(SUBDIR); do (cd $$d && $(RECURSIVE_MAKE) $@); done
525 -${top_distclean} 523 -${top_distclean}
526 $(RM) TAGS 524 $(RM) TAGS
527 525
528 ## This doesn't actually appear in the coding standards, but Karl 526 ## This doesn't actually appear in the coding standards, but Karl
529 ## says GCC supports it, and that's where the configuration part of 527 ## says GCC supports it, and that's where the configuration part of
530 ## the coding standards seem to come from. It's like distclean, but 528 ## the coding standards seem to come from. It's like distclean, but
531 ## it deletes backup and autosave files too. 529 ## it deletes backup and autosave files too.
532 extraclean: 530 extraclean:
533 for d in $(SUBDIR); do (cd $$d && $(MAKE) $(MFLAGS) $@); done 531 for d in $(SUBDIR); do (cd $$d && $(RECURSIVE_MAKE) $@); done
534 $(RM) *~ \#* 532 $(RM) *~ \#*
535 -${top_distclean} 533 -${top_distclean}
536 534
537 ## Unlocking and relocking. The idea of these productions is to reduce 535 ## Unlocking and relocking. The idea of these productions is to reduce
538 ## hassles when installing an incremental tar of XEmacs. Do `make unlock' 536 ## hassles when installing an incremental tar of XEmacs. Do `make unlock'
550 .PHONY: unlock relock TAGS tags check dist info dvi mcs 548 .PHONY: unlock relock TAGS tags check dist info dvi mcs
551 549
552 unlock: 550 unlock:
553 chmod u+w $(SOURCES) cpp/* 551 chmod u+w $(SOURCES) cpp/*
554 -cd elisp && chmod u+w Makefile README *.texi 552 -cd elisp && chmod u+w Makefile README *.texi
555 cd etc && $(MAKE) $(MFLAGS) unlock 553 for d in src etc lib-src lisp; do (cd $$d && $(RECURSIVE_MAKE) $@); done
556 cd lib-src && $(MAKE) $(MFLAGS) unlock
557 cd lisp && $(MAKE) $(MFLAGS) unlock
558 cd lisp/term && chmod u+w README *.el 554 cd lisp/term && chmod u+w README *.el
559 cd man && chmod u+w *texi* ChangeLog split-man 555 cd man && chmod u+w *texi* ChangeLog split-man
560 cd lwlib && chmod u+w *.[ch] Makefile.in.in 556 cd lwlib && chmod u+w *.[ch] Makefile.in.in
561 cd src && $(MAKE) $(MFLAGS) $@
562 557
563 relock: 558 relock:
564 chmod u-w $(SOURCES) cpp/* 559 chmod u-w $(SOURCES) cpp/*
565 -cd elisp && chmod u-w Makefile README *.texi 560 -cd elisp && chmod u-w Makefile README *.texi
566 cd etc && $(MAKE) $(MFLAGS) relock 561 for d in src etc lib-src lisp; do (cd $$d && $(RECURSIVE_MAKE) $@); done
567 cd lib-src && $(MAKE) $(MFLAGS) relock
568 cd lisp && $(MAKE) $(MFLAGS) relock
569 cd lisp/term && chmod u+w README *.el 562 cd lisp/term && chmod u+w README *.el
570 cd man && chmod u+w *texi* ChangeLog split-man 563 cd man && chmod u+w *texi* ChangeLog split-man
571 cd lwlib && chmod u+w *.[ch] Makefile.in.in 564 cd lwlib && chmod u+w *.[ch] Makefile.in.in
572 cd src && $(MAKE) $(MFLAGS) $@
573 565
574 TAGS tags: FRC.tags 566 TAGS tags: FRC.tags
575 @echo "If you don't have a copy of etags around, then do 'make lib-src' first." 567 @echo "If you don't have a copy of etags around, then do 'make lib-src' first."
576 @PATH=`$(pwd)`/lib-src:$$PATH HOME=/-=-; export PATH HOME; \ 568 @PATH=`$(pwd)`/lib-src:$$PATH HOME=/-=-; export PATH HOME; \
577 echo "Using etags from `which etags`." 569 echo "Using etags from `which etags`."
588 ## Is this something Chuck used and doesn't work with CVS? -slb 580 ## Is this something Chuck used and doesn't work with CVS? -slb
589 ## dist: 581 ## dist:
590 ## cd ${srcdir} && make-dist 582 ## cd ${srcdir} && make-dist
591 583
592 info: FRC.info 584 info: FRC.info
593 cd ${srcdir}/man && $(MAKE) $(MFLAGS) $@ 585 cd ${srcdir}/man && $(RECURSIVE_MAKE) $@
594 586
595 dvi: 587 dvi:
596 cd ${srcdir}/man && $(MAKE) $(MFLAGS) $@ 588 cd ${srcdir}/man && $(RECURSIVE_MAKE) $@
597 589
598 ## Fix up version information in executables (Solaris-only) 590 ## Fix up version information in executables (Solaris-only)
599 mcs: 591 mcs:
600 date=`LANG=C LC_ALL=C date -u '+%e %b %Y'`; \ 592 date=`LANG=C LC_ALL=C date -u '+%e %b %Y'`; \
601 ident="@(#)RELEASE VERSION XEmacs ${version} $${date}"; \ 593 ident="@(#)RELEASE VERSION XEmacs ${version} $${date}"; \