comparison Makefile.in @ 80:1ce6082ce73f r20-0b90

Import from CVS: tag r20-0b90
author cvs
date Mon, 13 Aug 2007 09:06:37 +0200
parents c7528f8e288d
children 1040fe1366ac
comparison
equal deleted inserted replaced
79:5b0a5bbffab6 80:1ce6082ce73f
232 all-elc all-elcs: src/paths.h src/Emacs.ad.h lib-src lwlib dump-elcs src 232 all-elc all-elcs: src/paths.h src/Emacs.ad.h lib-src lwlib dump-elcs src
233 sh ${srcdir}/lib-src/update-elc.sh 233 sh ${srcdir}/lib-src/update-elc.sh
234 234
235 # Sub-target for all-elc. 235 # Sub-target for all-elc.
236 dump-elc dump-elcs: FRC.dump-elcs 236 dump-elc dump-elcs: FRC.dump-elcs
237 cd src; $(MAKE) dump-elcs $(MFLAGS) \ 237 cd src && $(MAKE) dump-elcs $(MFLAGS) \
238 CC='${CC}' CFLAGS='${CFLAGS}' MAKE='${MAKE}' 238 CC='${CC}' CFLAGS='${CFLAGS}' MAKE='${MAKE}'
239 239
240 autoloads: src 240 autoloads: src
241 sh ${srcdir}/lib-src/update-autoloads.sh 241 sh ${srcdir}/lib-src/update-autoloads.sh
242 242
297 dynodump: FRC.dynodump 297 dynodump: FRC.dynodump
298 298
299 .RECURSIVE: ${SUBDIR} 299 .RECURSIVE: ${SUBDIR}
300 300
301 ${SUBDIR}: ${SUBDIR_MAKEFILES} src/config.h FRC 301 ${SUBDIR}: ${SUBDIR_MAKEFILES} src/config.h FRC
302 cd $@; $(MAKE) all $(MFLAGS) \ 302 cd $@ && $(MAKE) all $(MFLAGS) \
303 CC='${CC}' CFLAGS='${CFLAGS}' MAKE='${MAKE}' 303 CC='${CC}' CFLAGS='${CFLAGS}' MAKE='${MAKE}'
304 304
305 Makefile: ${srcdir}/Makefile.in config.status 305 Makefile: ${srcdir}/Makefile.in config.status
306 ./config.status 306 ./config.status
307 307
350 install-arch-dep: mkdir 350 install-arch-dep: mkdir
351 (cd lib-src && \ 351 (cd lib-src && \
352 $(MAKE) install $(MFLAGS) prefix=${prefix} \ 352 $(MAKE) install $(MFLAGS) prefix=${prefix} \
353 exec_prefix=${exec_prefix} bindir=${bindir} libdir=${libdir} \ 353 exec_prefix=${exec_prefix} bindir=${bindir} libdir=${libdir} \
354 archlibdir=${archlibdir}) 354 archlibdir=${archlibdir})
355 if [ `(cd ${archlibdir}; /bin/pwd)` != `(cd ./lib-src; /bin/pwd)` ]; \ 355 if [ `(cd ${archlibdir} && /bin/pwd)` != `(cd ./lib-src && /bin/pwd)` ]; \
356 then \ 356 then \
357 ${INSTALL_DATA} lib-src/DOC ${archlibdir}/DOC ; \ 357 ${INSTALL_DATA} lib-src/DOC ${archlibdir}/DOC ; \
358 for subdir in `find ${archlibdir} -type d ! -name RCS ! -name SCCS ! -name CVS -print` ; do \ 358 for subdir in `find ${archlibdir} -type d ! -name RCS ! -name SCCS ! -name CVS -print` ; do \
359 rm -rf $${subdir}/RCS $${subdir}/CVS $${subdir}/SCCS ; \ 359 rm -rf $${subdir}/RCS $${subdir}/CVS $${subdir}/SCCS ; \
360 rm -f $${subdir}/\#* $${subdir}/*~ ; \ 360 rm -f $${subdir}/\#* $${subdir}/*~ ; \
361 done ; \ 361 done ; \
362 else true; fi 362 else true; fi
363 ${INSTALL_PROGRAM} src/xemacs ${bindir}/xemacs-${version} 363 ${INSTALL_PROGRAM} src/xemacs ${bindir}/xemacs-${version}
364 -chmod 0755 ${bindir}/xemacs-${version} 364 -chmod 0755 ${bindir}/xemacs-${version}
365 rm -f ${bindir}/xemacs 365 rm -f ${bindir}/xemacs
366 (cd ${bindir} ; ${LN_S} xemacs-${version} ./xemacs) 366 (cd ${bindir} && ${LN_S} xemacs-${version} ./xemacs)
367 367
368 install-arch-indep: mkdir 368 install-arch-indep: mkdir
369 -set ${COPYDESTS} ; \ 369 -set ${COPYDESTS} ; \
370 for dir in ${COPYDIR} ; do \ 370 for dir in ${COPYDIR} ; do \
371 if [ `(cd $$1 && pwd)` != `(cd $${dir} && pwd)` ] ; then \ 371 if [ `(cd $$1 && pwd)` != `(cd $${dir} && pwd)` ] ; then \
378 for dir in ${COPYDIR} ; do \ 378 for dir in ${COPYDIR} ; do \
379 dest=$$1 ; shift ; \ 379 dest=$$1 ; shift ; \
380 [ -d $${dir} ] \ 380 [ -d $${dir} ] \
381 && [ `(cd $${dir} && /bin/pwd)` != `(cd $${dest} && /bin/pwd)` ] \ 381 && [ `(cd $${dir} && /bin/pwd)` != `(cd $${dest} && /bin/pwd)` ] \
382 && (echo "Copying $${dir}..." ; \ 382 && (echo "Copying $${dir}..." ; \
383 (cd $${dir}; tar -cf - . )|(cd $${dest};umask 022; tar -xf - );\ 383 (cd $${dir} && tar -cf - . ) | \
384 (cd $${dest} && umask 022 && tar -xf - );\
384 chmod 0755 $${dest}; \ 385 chmod 0755 $${dest}; \
385 for subdir in `find $${dest} -type d ! -name RCS ! -name SCCS ! -name CVS -print` ; do \ 386 for subdir in `find $${dest} -type d ! -name RCS ! -name SCCS ! -name CVS -print` ; do \
386 rm -rf $${subdir}/RCS $${subdir}/CVS $${subdir}/SCCS ; \ 387 rm -rf $${subdir}/RCS $${subdir}/CVS $${subdir}/SCCS ; \
387 rm -f $${subdir}/\#* $${subdir}/*~ ; \ 388 rm -f $${subdir}/\#* $${subdir}/*~ ; \
388 done) ; \ 389 done) ; \
389 done 390 done
390 if [ `(cd ${srcdir}/info && /bin/pwd)` != `(cd ${infodir} && /bin/pwd)` ]; \ 391 if [ `(cd ${srcdir}/info && /bin/pwd)` != `(cd ${infodir} && /bin/pwd)` ]; \
391 then \ 392 then \
392 (cd ${srcdir}/info ; \ 393 (cd ${srcdir}/info && \
393 if [ ! -f ${infodir}/dir ] && [ -f dir ]; then \ 394 if [ ! -f ${infodir}/dir ] && [ -f dir ]; then \
394 ${INSTALL_DATA} ${srcdir}/info/dir ${infodir}/dir ; \ 395 ${INSTALL_DATA} ${srcdir}/info/dir ${infodir}/dir ; \
395 fi ; \ 396 fi ; \
396 for f in *.info* ; do \ 397 for f in *.info* ; do \
397 ${INSTALL_DATA} ${srcdir}/info/$$f ${infodir}/$$f ; \ 398 ${INSTALL_DATA} ${srcdir}/info/$$f ${infodir}/$$f ; \
398 chmod 0644 ${infodir}/$$f; \ 399 chmod 0644 ${infodir}/$$f; \
399 gzip -f9 ${infodir}/$$f; \ 400 gzip -9 -f ${infodir}/$$f; \
400 done); \ 401 done); \
401 else true; fi 402 else true; fi
402 cd ${srcdir}/etc; for page in xemacs etags ctags gnuserv \ 403 cd ${srcdir}/etc && for page in xemacs etags ctags gnuserv \
403 gnuclient gnuattach gnudoit ; do \ 404 gnuclient gnuattach gnudoit ; do \
404 ${INSTALL_DATA} ${srcdir}/etc/$${page}.1 ${mandir}/$${page}${manext} ; \ 405 ${INSTALL_DATA} ${srcdir}/etc/$${page}.1 ${mandir}/$${page}${manext} ; \
405 chmod 0644 ${mandir}/$${page}${manext} ; \ 406 chmod 0644 ${mandir}/$${page}${manext} ; \
406 done 407 done
407 408
572 573
573 TAGS tags: 574 TAGS tags:
574 @echo "If you don't have a copy of etags around, then do 'make lib-src' first." 575 @echo "If you don't have a copy of etags around, then do 'make lib-src' first."
575 @PATH=`pwd`/lib-src:$$PATH HOME=/-=-; export PATH HOME; \ 576 @PATH=`pwd`/lib-src:$$PATH HOME=/-=-; export PATH HOME; \
576 echo "Using etags from `which etags`." 577 echo "Using etags from `which etags`."
577 PATH=`pwd`/lib-src:$$PATH ; export PATH; cd ${srcdir} ; \ 578 PATH=`pwd`/lib-src:$$PATH ; export PATH; cd ${srcdir} && \
578 etags --regex='/[ ]*DEF\(VAR\|INE\)_[A-Z_]+[ ]*([ ]*"\([^"]+\)"/\2/' src/*.[ch] ; \ 579 etags --regex='/[ ]*DEF\(VAR\|INE\)_[A-Z_]+[ ]*([ ]*"\([^"]+\)"/\2/' src/*.[ch] ; \
579 for d in `find lisp -name SCCS -prune -o -name RCS -prune -o -type d -print` ; do \ 580 for d in `find lisp -name SCCS -prune -o -name RCS -prune -o -type d -print` ; do \
580 (cd $$d ; if [ "`echo *.el`" != "*.el" ] ; then etags -a -o ${srcdir}/TAGS *.el ; fi ) ; \ 581 (cd $$d && if [ "`echo *.el`" != "*.el" ] ; then etags -a -o ${srcdir}/TAGS *.el ; fi ) ; \
581 done ; \ 582 done ; \
582 etags -a lwlib/*.[ch] 583 etags -a lwlib/*.[ch]
583 584
584 check: 585 check:
585 @echo "We don't have any automated tests for XEmacs yet." 586 @echo "We don't have any automated tests for XEmacs yet."