comparison src/Makefile.in.in @ 280:7df0dd720c89 r21-0b38

Import from CVS: tag r21-0b38
author cvs
date Mon, 13 Aug 2007 10:32:22 +0200
parents 90d73dddcdc4
children 558f606b08ae
comparison
equal deleted inserted replaced
279:c20b2fb5bb0a 280:7df0dd720c89
20 ## the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 20 ## the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21 ## Boston, MA 02111-1307, USA. 21 ## Boston, MA 02111-1307, USA.
22 22
23 ## Synched up with: Not synched with FSF. 23 ## Synched up with: Not synched with FSF.
24 24
25 all: xemacs 25 PROGNAME=@PROGNAME@
26
27 all: ${PROGNAME}
26 .PHONY : all release dump-elc dump-elcs all-elc all-elcs lint 28 .PHONY : all release dump-elc dump-elcs all-elc all-elcs lint
27 29
28 ## For performance and consistency, no built-in rules. 30 ## For performance and consistency, no built-in rules.
29 .SUFFIXES: 31 .SUFFIXES:
30 .SUFFIXES: .c .h .o .i .s .dep 32 .SUFFIXES: .c .h .o .i .s .dep
286 LOADPATH = EMACSBOOTSTRAPLOADPATH="${lispdir}:${blddir}" 288 LOADPATH = EMACSBOOTSTRAPLOADPATH="${lispdir}:${blddir}"
287 DUMPENV = $(LOADPATH) 289 DUMPENV = $(LOADPATH)
288 290
289 release: temacs ${libsrc}DOC $(mo_file) ${other_files} 291 release: temacs ${libsrc}DOC $(mo_file) ${other_files}
290 #ifdef CANNOT_DUMP 292 #ifdef CANNOT_DUMP
291 ln temacs xemacs 293 ln temacs ${PROGNAME}
292 #else 294 #else
293 #ifdef HAVE_SHM 295 #ifdef HAVE_SHM
294 -if [ -w ${srcdir}/../lisp ]; then \ 296 -if [ -w ${srcdir}/../lisp ]; then \
295 w=`pwd`; cd ${srcdir} && $${w}/temacs -nl -batch -l ${srcdir}/../lisp/inc-vers; \ 297 w=`pwd`; cd ${srcdir} && $${w}/temacs -nl -batch -l ${srcdir}/../lisp/inc-vers; \
296 else true; fi 298 else true; fi
308 @$(RM) SATISFIED 310 @$(RM) SATISFIED
309 #endif /* ! defined (HAVE_SHM) */ 311 #endif /* ! defined (HAVE_SHM) */
310 touch release 312 touch release
311 #endif /* ! defined (CANNOT_DUMP) */ 313 #endif /* ! defined (CANNOT_DUMP) */
312 314
313 xemacs: temacs ${libsrc}DOC $(mo_file) ${other_files} update-elc.stamp 315 ${PROGNAME}: temacs ${libsrc}DOC $(mo_file) ${other_files} update-elc.stamp
314 @$(RM) $@ && touch SATISFIED 316 @$(RM) $@ && touch SATISFIED
315 -$(DUMPENV) ./temacs -batch -l ${srcdir}/../lisp/loadup.el dump 317 -$(DUMPENV) ./temacs -batch -l ${srcdir}/../lisp/loadup.el dump
316 @if test -f $@; then if test -f SATISFIED; then \ 318 @if test -f $@; then if test -f SATISFIED; then \
317 echo "Testing for Lisp shadows ..."; \ 319 echo "Testing for Lisp shadows ..."; \
318 ./xemacs -batch -vanilla -f list-load-path-shadows; fi; \ 320 ./${PROGNAME} -batch -vanilla -f list-load-path-shadows; fi; \
319 $(RM) SATISFIED; exit 0; fi; \ 321 $(RM) SATISFIED; exit 0; fi; \
320 if test -f SATISFIED; then $(RM) SATISFIED; exit 1; fi; \ 322 if test -f SATISFIED; then $(RM) SATISFIED; exit 1; fi; \
321 $(RECURSIVE_MAKE) $@; 323 $(RECURSIVE_MAKE) $@;
322 324
323 fastdump: temacs 325 fastdump: temacs
324 @$(RM) xemacs && touch SATISFIED 326 @$(RM) ${PROGNAME} && touch SATISFIED
325 -$(DUMPENV) ./temacs -batch -l ${srcdir}/../lisp/loadup.el dump 327 -$(DUMPENV) ./temacs -batch -l ${srcdir}/../lisp/loadup.el dump
326 @if test -f xemacs; then if test -f SATISFIED; then \ 328 @if test -f ${PROGNAME}; then if test -f SATISFIED; then \
327 ./xemacs -batch -vanilla -f list-load-path-shadows; fi; \ 329 ./${PROGNAME} -batch -vanilla -f list-load-path-shadows; fi; \
328 $(RM) SATISFIED; exit 0; fi; \ 330 $(RM) SATISFIED; exit 0; fi; \
329 if test -f SATISFIED; then $(RM) SATISFIED; exit 1; fi; 331 if test -f SATISFIED; then $(RM) SATISFIED; exit 1; fi;
330 332
331 FRC.update-elc.stamp : 333 FRC.update-elc.stamp :
332 334
657 $(RM) libextcli* update-elc.stamp 659 $(RM) libextcli* update-elc.stamp
658 ## This is used in making a distribution. 660 ## This is used in making a distribution.
659 ## Do not use it on development directories! 661 ## Do not use it on development directories!
660 distclean: clean 662 distclean: clean
661 $(RM) config.h paths.h Emacs.ad.h \ 663 $(RM) config.h paths.h Emacs.ad.h \
662 Makefile Makefile.in TAGS xemacs.* 664 Makefile Makefile.in TAGS ${PROGNAME}.*
663 realclean: distclean 665 realclean: distclean
664 versionclean: 666 versionclean:
665 $(RM) xemacs xemacs.exe ${libsrc}DOC 667 $(RM) ${PROGNAME} ${PROGNAME}.exe ${libsrc}DOC
666 extraclean: realclean 668 extraclean: realclean
667 $(RM) *~ \#* m/*~ m/\#* s/*~ s/\#* 669 $(RM) *~ \#* m/*~ m/\#* s/*~ s/\#*
668 670
669 .PHONY : lock unlock 671 .PHONY : lock unlock
670 SOURCES = *.[chm] *.pswm [sm]/* COPYING paths.h.in Makefile.in.in \ 672 SOURCES = *.[chm] *.pswm [sm]/* COPYING paths.h.in Makefile.in.in \
674 676
675 relock: 677 relock:
676 chmod -w $(SOURCES) 678 chmod -w $(SOURCES)
677 679
678 ## Dependency processing using home-grown script, not makedepend 680 ## Dependency processing using home-grown script, not makedepend
679 FRC.depend :
680 depend: FRC.depend 681 depend: FRC.depend
681 $(RM) $@; 682 $(RM) ${srcdir}/depend; mv depend.tmp ${srcdir}/depend
682 perl ${srcdir}/make-src-depend > depend.tmp 683 perl ${srcdir}/make-src-depend > depend.tmp
683 mv depend.tmp ${srcdir}/depend 684 mv depend.tmp ${srcdir}/depend