comparison Makefile.in @ 203:850242ba4a81 r20-3b28

Import from CVS: tag r20-3b28
author cvs
date Mon, 13 Aug 2007 10:02:21 +0200
parents eb5470882647
children e45d5e7c476e
comparison
equal deleted inserted replaced
202:61eefc8fc970 203:850242ba4a81
90 90
91 ## Where to install architecture-independent data files. 91 ## Where to install architecture-independent data files.
92 ## ${lispdir} and ${etcdir} are subdirectories of this. 92 ## ${lispdir} and ${etcdir} are subdirectories of this.
93 datadir=@datadir@ 93 datadir=@datadir@
94 94
95 ## Where to find XEmacs packages.
95 pkgdir=@pkgdir@ 96 pkgdir=@pkgdir@
96 97
97 ## Where to install and expect the files that XEmacs modifies as it runs. 98 ## Where to install and expect the files that XEmacs modifies as it runs.
98 ## These files are all architecture-independent. Right now, the 99 ## These files are all architecture-independent. Right now, the
99 ## only such data is the locking directory; 100 ## only such data is the locking directory;
107 108
108 ## Where to install XEmacs's man pages, and what extension they should have. 109 ## Where to install XEmacs's man pages, and what extension they should have.
109 mandir=@mandir@ 110 mandir=@mandir@
110 manext=.1 111 manext=.1
111 112
112 ## Where to install and expect the info files describing XEmacs. In the 113 ## Where to install and expect the info files describing XEmacs. In the
113 ## past, this defaulted to a subdirectory of ${prefix}/lib/xemacs, but 114 ## past, this defaulted to a subdirectory of ${prefix}/lib/xemacs, but
114 ## since there are now many packages documented with the texinfo 115 ## since there are now many packages documented with the texinfo
115 ## system, it is inappropriate to imply that it is part of XEmacs. 116 ## system, it is inappropriate to imply that it is part of XEmacs.
116 infodir=@infodir@ 117 infodir=@infodir@
117 118
118 ## This is set to 'yes' if the user specified the --infodir flag at 119 ## This is set to 'yes' if the user specified the --infodir flag at
119 ## configuration time. 120 ## configuration time.
120 infodir_user_defined=@infodir_user_defined@ 121 infodir_user_defined=@infodir_user_defined@
122
123 ## Document me.
124 ## See callproc.c for code which references this.
125 infopath=@infopath@
126 infopath_user_defined=@infopath_user_defined@
121 127
122 ## Where to find the source code. The source code for XEmacs's C kernel is 128 ## Where to find the source code. The source code for XEmacs's C kernel is
123 ## expected to be in ${srcdir}/src, and the source code for XEmacs's 129 ## expected to be in ${srcdir}/src, and the source code for XEmacs's
124 ## utility programs is expected to be in ${srcdir}/lib-src. This is 130 ## utility programs is expected to be in ${srcdir}/lib-src. This is
125 ## set by the configure script's `--srcdir' option. 131 ## set by the configure script's `--srcdir' option.
126 srcdir=@srcdir@ 132 srcdir=@srcdir@
133
134 ## Where the build is done.
135 blddir=@blddir@
127 136
128 ## ==================== XEmacs-specific directories ==================== 137 ## ==================== XEmacs-specific directories ====================
129 138
130 ## These variables hold the values XEmacs will actually use. They are 139 ## These variables hold the values XEmacs will actually use. They are
131 ## based on the values of the standard Make variables above. 140 ## based on the values of the standard Make variables above.
217 ## avoid nuking an existing dir file, so we don't do that here; 226 ## avoid nuking an existing dir file, so we don't do that here;
218 ## instead, we have written out explicit code in the `install' targets. 227 ## instead, we have written out explicit code in the `install' targets.
219 COPYDIR = ${srcdir}/etc ${srcdir}/lisp 228 COPYDIR = ${srcdir}/etc ${srcdir}/lisp
220 COPYDESTS = ${etcdir} ${lispdir} 229 COPYDESTS = ${etcdir} ${lispdir}
221 GENERATED_HEADERS = src/paths.h src/Emacs.ad.h src/puresize-adjust.h src/config.h lwlib/config.h 230 GENERATED_HEADERS = src/paths.h src/Emacs.ad.h src/puresize-adjust.h src/config.h lwlib/config.h
222 231 GENERATED_LISP = lisp/utils/finder-inf.el
223 all: ${GENERATED_HEADERS} ${MAKE_SUBDIR} 232
233 all: ${GENERATED_HEADERS} ${MAKE_SUBDIR} ${GENERATED_LISP}
224 234
225 ## For performance and consistency, no built-in rules 235 ## For performance and consistency, no built-in rules
226 .SUFFIXES: 236 .SUFFIXES:
227 237
228 .NO_PARALLEL: ${GENERATED_HEADERS} ${MAKE_SUBDIR} dump-elcs 238 .NO_PARALLEL: ${GENERATED_HEADERS} ${MAKE_SUBDIR} dump-elcs
234 ## Convenience target for XEmacs maintainers 244 ## Convenience target for XEmacs maintainers
235 ## This would run `make-xemacsdist' if I were really confident that everything 245 ## This would run `make-xemacsdist' if I were really confident that everything
236 ## was turnkey. 246 ## was turnkey.
237 dist: all-elc info 247 dist: all-elc info
238 248
249 ## Convenience target for XEmacs maintainers
250 ## Updates configure from configure.in and updates config.values.in
251 configure: configure.in
252 autoconf
253 /bin/sh lib-src/config.values.sh
254
239 ## Build XEmacs and recompile out-of-date and missing .elc files along 255 ## Build XEmacs and recompile out-of-date and missing .elc files along
240 ## the way. 256 ## the way.
241 all-elc all-elcs: lib-src lwlib dump-elcs src 257 all-elc all-elcs: lib-src lwlib dump-elcs src
242 MAKE='$(MAKE)' sh ${srcdir}/lib-src/update-elc.sh 258 MAKE='$(MAKE)' sh ${srcdir}/lib-src/update-elc.sh
243 259
251 custom-loads: 267 custom-loads:
252 MAKE='$(MAKE)' sh ${srcdir}/lib-src/update-custom.sh 268 MAKE='$(MAKE)' sh ${srcdir}/lib-src/update-custom.sh
253 269
254 finder: src 270 finder: src
255 @(cd lisp/utils; \ 271 @(cd lisp/utils; \
256 ../../src/xemacs -batch -q -no-site-file \ 272 ${blddir}/src/xemacs -batch -q -no-site-file \
273 -l finder -f finder-compile-keywords )
274
275 lisp/utils/finder-inf.el: FRC.lisp.utils.finder-inf.el
276 @(cd lisp/utils; \
277 ${blddir}/src/xemacs -batch -q -no-site-file \
257 -l finder -f finder-compile-keywords ) 278 -l finder -f finder-compile-keywords )
258 279
259 ## We force the rebuilding of src/paths.h because the user might give 280 ## We force the rebuilding of src/paths.h because the user might give
260 ## different values for the various directories. Since we use 281 ## different values for the various directories. Since we use
261 ## move-if-change, src/paths.h only actually changes if the user did 282 ## move-if-change, src/paths.h only actually changes if the user did
285 else echo '/* #define PATH_LOCK "${lockdir}" */'; \ 306 else echo '/* #define PATH_LOCK "${lockdir}" */'; \
286 fi; \ 307 fi; \
287 if test "${infodir_user_defined}" = "yes"; \ 308 if test "${infodir_user_defined}" = "yes"; \
288 then echo '#define PATH_INFO "${infodir}"'; \ 309 then echo '#define PATH_INFO "${infodir}"'; \
289 else echo '/* #define PATH_INFO "${infodir}" */'; \ 310 else echo '/* #define PATH_INFO "${infodir}" */'; \
311 fi; \
312 if test "${infopath_user_defined}" = "yes"; \
313 then echo '#define PATH_INFOPATH "${infopath}"'; \
314 else echo '/* #define PATH_INFOPATH "${infopath}" */'; \
290 fi; ) >> src/paths.h.tmp; \ 315 fi; ) >> src/paths.h.tmp; \
291 sh ${srcdir}/move-if-change src/paths.h.tmp src/paths.h 316 sh ${srcdir}/move-if-change src/paths.h.tmp src/paths.h
292 317
293 ## We have to force the building of Emacs.ad.h as well in order to get it 318 ## We have to force the building of Emacs.ad.h as well in order to get it
294 ## updated correctly when VPATH is being used. Since we use move-if-change, 319 ## updated correctly when VPATH is being used. Since we use move-if-change,
312 pkg-src/tree-x: pkg-src/FRC.tree-x 337 pkg-src/tree-x: pkg-src/FRC.tree-x
313 lib-src: FRC.lib-src 338 lib-src: FRC.lib-src
314 lwlib: FRC.lwlib 339 lwlib: FRC.lwlib
315 dynodump: FRC.dynodump 340 dynodump: FRC.dynodump
316 FRC.src FRC.lib-src FRC.lwlib FRC.dynodump pkg-src/FRC.tree-x: 341 FRC.src FRC.lib-src FRC.lwlib FRC.dynodump pkg-src/FRC.tree-x:
342 FRC.lisp.utils.finder-inf.el:
317 343
318 .RECURSIVE: ${SUBDIR} 344 .RECURSIVE: ${SUBDIR}
319 345
320 ${SUBDIR}: ${SUBDIR_MAKEFILES} ${GENERATED_HEADERS} FRC 346 ${SUBDIR}: ${SUBDIR_MAKEFILES} ${GENERATED_HEADERS} FRC
321 cd $@ && $(RECURSIVE_MAKE) all 347 cd $@ && $(RECURSIVE_MAKE) all
386 do (cd $${subdir} && $(RM) -r RCS CVS SCCS \#* *~) ; done ; \ 412 do (cd $${subdir} && $(RM) -r RCS CVS SCCS \#* *~) ; done ; \
387 else true; fi 413 else true; fi
388 ${INSTALL_PROGRAM} src/xemacs ${bindir}/xemacs-${version} 414 ${INSTALL_PROGRAM} src/xemacs ${bindir}/xemacs-${version}
389 -chmod 0755 ${bindir}/xemacs-${version} 415 -chmod 0755 ${bindir}/xemacs-${version}
390 cd ${bindir} && $(RM) ./xemacs && ${LN_S} xemacs-${version} ./xemacs 416 cd ${bindir} && $(RM) ./xemacs && ${LN_S} xemacs-${version} ./xemacs
417 if test "${prefix}" != "${exec_prefix}"; then \
418 test ! -d ${exec_prefix}/lib/xemacs && \
419 $(LN_S) ${prefix}/lib/xemacs ${exec_prefix}/lib/xemacs; \
420 test ! -d ${exec_prefix}/lib/xemacs-${version}/etc && \
421 $(LN_S) ${prefix}/lib/xemacs-${version}/etc \
422 ${exec_prefix}/lib/xemacs-${version}/etc; \
423 test ! -d ${exec_prefix}/lib/xemacs-${version}/info && \
424 $(LN_S) ${prefix}/lib/xemacs-${version}/info \
425 ${exec_prefix}/lib/xemacs-${version}/info; \
426 test ! -d ${exec_prefix}/lib/xemacs-${version}/lisp && \
427 $(LN_S) ${prefix}/lib/xemacs-${version}/lisp \
428 ${exec_prefix}/lib/xemacs-${version}/lisp; \
429 fi
391 430
392 install-arch-indep: mkdir 431 install-arch-indep: mkdir
393 -@set ${COPYDESTS} ; \ 432 -@set ${COPYDESTS} ; \
394 for dir in ${COPYDIR} ; do \ 433 for dir in ${COPYDIR} ; do \
395 if [ `(cd $$1 && $(pwd))` != `(cd $${dir} && $(pwd))` ] ; then \ 434 if [ `(cd $$1 && $(pwd))` != `(cd $${dir} && $(pwd))` ] ; then \
425 cd ${srcdir}/etc && \ 464 cd ${srcdir}/etc && \
426 for page in xemacs etags ctags gnuserv gnuclient gnuattach gnudoit; do \ 465 for page in xemacs etags ctags gnuserv gnuclient gnuattach gnudoit; do \
427 ${INSTALL_DATA} ${srcdir}/etc/$${page}.1 ${mandir}/$${page}${manext} ; \ 466 ${INSTALL_DATA} ${srcdir}/etc/$${page}.1 ${mandir}/$${page}${manext} ; \
428 chmod 0644 ${mandir}/$${page}${manext} ; \ 467 chmod 0644 ${mandir}/$${page}${manext} ; \
429 done 468 done
430 if test "${prefix}" != "${exec_prefix}"; then \
431 test ! -d ${exec_prefix}/lib/xemacs && \
432 $(LN_S) ${prefix}/lib/xemacs ${exec_prefix}/lib/xemacs; \
433 test ! -d ${exec_prefix}/lib/xemacs-${version}/etc && \
434 $(LN_S) ${prefix}/lib/xemacs-${version}/etc \
435 ${exec_prefix}/lib/xemacs-${version}/etc; \
436 test ! -d ${exec_prefix}/lib/xemacs-${version}/info && \
437 $(LN_S) ${prefix}/lib/xemacs-${version}/info \
438 ${exec_prefix}/lib/xemacs-${version}/info; \
439 test ! -d ${exec_prefix}/lib/xemacs-${version}/lisp && \
440 $(LN_S) ${prefix}/lib/xemacs-${version}/lisp \
441 ${exec_prefix}/lib/xemacs-${version}/lisp; \
442 fi
443 @echo "If you would like to save approximately 15M of disk space, do" 469 @echo "If you would like to save approximately 15M of disk space, do"
444 @echo "make gzip-el" 470 @echo "make gzip-el"
445 @echo "or you may run " 471 @echo "or you may run "
446 @echo ${srcdir}/lib-src/gzip-el.sh lispdir " from the command line." 472 @echo ${srcdir}/lib-src/gzip-el.sh lispdir " from the command line."
447 @echo "Where lispdir is where the lisp files were installed, i.e.," 473 @echo "Where lispdir is where the lisp files were installed, i.e.,"