Mercurial > hg > xemacs-beta
comparison Makefile.in @ 167:85ec50267440 r20-3b10
Import from CVS: tag r20-3b10
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:45:46 +0200 |
parents | 5a88923fcbfe |
children | 929b76928fce |
comparison
equal
deleted
inserted
replaced
166:7a77eb660975 | 167:85ec50267440 |
---|---|
205 ## Subdirectories that can be made recursively. | 205 ## Subdirectories that can be made recursively. |
206 SUBDIR = ${MAKE_SUBDIR} man | 206 SUBDIR = ${MAKE_SUBDIR} man |
207 | 207 |
208 ## The makefiles of the directories in ${MAKE_SUBDIR}. | 208 ## The makefiles of the directories in ${MAKE_SUBDIR}. |
209 SUBDIR_MAKEFILES = @SUBDIR_MAKEFILES@ | 209 SUBDIR_MAKEFILES = @SUBDIR_MAKEFILES@ |
210 | |
211 ## Subdirectories to `make install-arch-dep' recursively | |
212 INSTALL_ARCH_DEP_SUBDIR = @INSTALL_ARCH_DEP_SUBDIR@ | |
210 | 213 |
211 ## Subdirectories to install, and where they'll go. | 214 ## Subdirectories to install, and where they'll go. |
212 ## lib-src's makefile knows how to install it, so we don't do that here. | 215 ## lib-src's makefile knows how to install it, so we don't do that here. |
213 ## When installing the info files, we need to do special things to | 216 ## When installing the info files, we need to do special things to |
214 ## avoid nuking an existing dir file, so we don't do that here; | 217 ## avoid nuking an existing dir file, so we don't do that here; |
297 (echo "/* Do not edit this file!" ; \ | 300 (echo "/* Do not edit this file!" ; \ |
298 echo " Automatically generated by XEmacs */" ; \ | 301 echo " Automatically generated by XEmacs */" ; \ |
299 echo "#define PURESIZE_ADJUSTMENT 0") > $@ | 302 echo "#define PURESIZE_ADJUSTMENT 0") > $@ |
300 | 303 |
301 src: @SRC_SUBDIR_DEPS@ FRC.src | 304 src: @SRC_SUBDIR_DEPS@ FRC.src |
305 pkg-src/tree-x: pkg-src/FRC.tree-x | |
302 lib-src: FRC.lib-src | 306 lib-src: FRC.lib-src |
303 lwlib: FRC.lwlib | 307 lwlib: FRC.lwlib |
304 dynodump: FRC.dynodump | 308 dynodump: FRC.dynodump |
305 FRC.src FRC.lib-src FRC.lwlib FRC.dynodump: | 309 FRC.src FRC.lib-src FRC.lwlib FRC.dynodump pkg-src/FRC.tree-x: |
306 | 310 |
307 .RECURSIVE: ${SUBDIR} | 311 .RECURSIVE: ${SUBDIR} |
308 | 312 |
309 ${SUBDIR}: ${SUBDIR_MAKEFILES} ${GENERATED_HEADERS} FRC | 313 ${SUBDIR}: ${SUBDIR_MAKEFILES} ${GENERATED_HEADERS} FRC |
310 cd $@ && $(MAKE) all $(MFLAGS) \ | 314 cd $@ && $(MAKE) all $(MFLAGS) \ |
320 ./config.status | 324 ./config.status |
321 | 325 |
322 lwlib/Makefile: ${srcdir}/lwlib/Makefile.in.in config.status | 326 lwlib/Makefile: ${srcdir}/lwlib/Makefile.in.in config.status |
323 ./config.status | 327 ./config.status |
324 | 328 |
329 pkg-src/tree-x/Makefile: ${srcdir}/pkg-src/tree-x/Makefile.in.in config.status | |
330 ./config.status | |
331 | |
332 src/config.h: ${srcdir}/src/config.h.in | |
333 ./config.status && touch $@ | |
334 | |
325 lwlib/config.h: ${srcdir}/lwlib/config.h.in | 335 lwlib/config.h: ${srcdir}/lwlib/config.h.in |
326 ./config.status && touch $@ | |
327 | |
328 src/config.h: ${srcdir}/src/config.h.in | |
329 ./config.status && touch $@ | 336 ./config.status && touch $@ |
330 | 337 |
331 ## ==================== Installation ==================== | 338 ## ==================== Installation ==================== |
332 | 339 |
333 ## If we let lib-src do its own installation, that means we | 340 ## If we let lib-src do its own installation, that means we |
356 install-only: ${MAKE_SUBDIR} install-arch-dep install-arch-indep | 363 install-only: ${MAKE_SUBDIR} install-arch-dep install-arch-indep |
357 | 364 |
358 install: all install-arch-dep install-arch-indep; | 365 install: all install-arch-dep install-arch-indep; |
359 | 366 |
360 install-arch-dep: mkdir | 367 install-arch-dep: mkdir |
361 cd lib-src && \ | 368 for subdir in ${INSTALL_ARCH_DEP_SUBDIR}; do \ |
362 $(MAKE) install $(MFLAGS) prefix=${prefix} \ | 369 ( cd $${subdir} && $(MAKE) install $(MFLAGS) prefix=${prefix} \ |
363 exec_prefix=${exec_prefix} bindir=${bindir} libdir=${libdir} \ | 370 exec_prefix=${exec_prefix} bindir=${bindir} libdir=${libdir} \ |
364 archlibdir=${archlibdir} | 371 archlibdir=${archlibdir} ) ; done |
365 if [ `(cd ${archlibdir} && $(pwd))` != `(cd ./lib-src && $(pwd))` ]; \ | 372 if test `(cd ${archlibdir} && $(pwd))` != `(cd lib-src && $(pwd))`; then \ |
366 then \ | |
367 ${INSTALL_DATA} lib-src/DOC ${archlibdir}/DOC ; \ | 373 ${INSTALL_DATA} lib-src/DOC ${archlibdir}/DOC ; \ |
368 for subdir in `find ${archlibdir} -type d ! -name RCS ! -name SCCS ! -name CVS -print` ; do \ | 374 for subdir in `find ${archlibdir} -type d ! -name RCS ! -name SCCS ! -name CVS -print` ; \ |
369 (cd $${subdir} && $(RM) -r RCS CVS SCCS \#* *~) ; \ | 375 do (cd $${subdir} && $(RM) -r RCS CVS SCCS \#* *~) ; done ; \ |
370 done ; \ | |
371 else true; fi | 376 else true; fi |
372 ${INSTALL_PROGRAM} src/xemacs ${bindir}/xemacs-${version} | 377 ${INSTALL_PROGRAM} src/xemacs ${bindir}/xemacs-${version} |
373 -chmod 0755 ${bindir}/xemacs-${version} | 378 -chmod 0755 ${bindir}/xemacs-${version} |
374 $(RM) ${bindir}/xemacs | 379 cd ${bindir} && $(RM) ./xemacs && ${LN_S} xemacs-${version} ./xemacs |
375 cd ${bindir} && ${LN_S} xemacs-${version} ./xemacs | |
376 | 380 |
377 install-arch-indep: mkdir | 381 install-arch-indep: mkdir |
378 -@set ${COPYDESTS} ; \ | 382 -@set ${COPYDESTS} ; \ |
379 for dir in ${COPYDIR} ; do \ | 383 for dir in ${COPYDIR} ; do \ |
380 if [ `(cd $$1 && $(pwd))` != `(cd $${dir} && $(pwd))` ] ; then \ | 384 if [ `(cd $$1 && $(pwd))` != `(cd $${dir} && $(pwd))` ] ; then \ |