(send-mail-function): Doc fix.
[emacs.git] / Makefile.in
bloba32f31857a5588848617bf0ecae1894517c36007
1 # DIST: This is the distribution Makefile for Emacs. configure can
2 # DIST: make most of the changes to this file you might want, so try
3 # DIST: that first.
5 # make all to compile and build Emacs.
6 # make install to install it.
7 # make TAGS to update tags tables.
9 # make clean or make mostlyclean
10 # Delete all files from the current directory that are normally
11 # created by building the program. Don't delete the files that
12 # record the configuration. Also preserve files that could be made
13 # by building, but normally aren't because the distribution comes
14 # with them.
16 # Delete `.dvi' files here if they are not part of the distribution.
18 # make distclean
19 # Delete all files from the current directory that are created by
20 # configuring or building the program. If you have unpacked the
21 # source and built the program without creating any other files,
22 # `make distclean' should leave only the files that were in the
23 # distribution.
25 # make maintainer-clean
26 # Delete everything from the current directory that can be
27 # reconstructed with this Makefile. This typically includes
28 # everything deleted by distclean, plus more: C source files
29 # produced by Bison, tags tables, info files, and so on.
31 # make extraclean
32 # Still more severe - delete backup and autosave files, too.
34 SHELL = /bin/sh
36 # If Make doesn't predefine MAKE, set it here.
37 @SET_MAKE@
39 # ==================== Things `configure' Might Edit ====================
41 CC=@CC@
42 CPP=@CPP@
43 C_SWITCH_SYSTEM=@c_switch_system@
44 ALLOCA=@ALLOCA@
45 LN_S=@LN_S@
46 CFLAGS=@CFLAGS@
47 LDFLAGS=@LDFLAGS@
48 CPPFLAGS=@CPPFLAGS@
49 C_SWITCH_X_SITE=@C_SWITCH_X_SITE@
50 LD_SWITCH_X_SITE=@LD_SWITCH_X_SITE@
51 YACC=@YACC@
53 ### These help us choose version- and architecture-specific directories
54 ### to install files in.
56 ### This should be the number of the Emacs version we're building,
57 ### like `18.59' or `19.0'.
58 version=@version@
60 ### This should be the name of the configuration we're building Emacs
61 ### for, like `mips-dec-ultrix' or `sparc-sun-sunos'.
62 configuration=@configuration@
64 # ==================== Where To Install Things ====================
66 # The default location for installation. Everything is placed in
67 # subdirectories of this directory. The default values for many of
68 # the variables below are expressed in terms of this one, so you may
69 # not need to change them. This defaults to /usr/local.
70 prefix=@prefix@
72 # Like `prefix', but used for architecture-specific files.
73 exec_prefix=@exec_prefix@
75 # Where to install Emacs and other binaries that people will want to
76 # run directly (like etags).
77 bindir=@bindir@
79 # Where to install architecture-independent data files. ${lispdir}
80 # and ${etcdir} are subdirectories of this.
81 datadir=@datadir@
83 # Where to install and expect the files that Emacs modifies as it
84 # runs. These files are all architecture-independent.
85 # Right now, this is not used.
86 sharedstatedir=@sharedstatedir@
88 # Where to install and expect executable files to be run by Emacs
89 # rather than directly by users, and other architecture-dependent
90 # data. ${archlibdir} is a subdirectory of this.
91 libexecdir=@libexecdir@
93 # Where to install Emacs's man pages, and what extension they should have.
94 mandir=@mandir@
95 manext=.1
96 man1dir=$(mandir)/man1
98 # Where to install and expect the info files describing Emacs. In the
99 # past, this defaulted to a subdirectory of ${prefix}/lib/emacs, but
100 # since there are now many packages documented with the texinfo
101 # system, it is inappropriate to imply that it is part of Emacs.
102 infodir=@infodir@
104 # Where to look for bitmap files.
105 bitmapdir=@bitmapdir@
107 # Where to find the source code. The source code for Emacs's C kernel is
108 # expected to be in ${srcdir}/src, and the source code for Emacs's
109 # utility programs is expected to be in ${srcdir}/lib-src. This is
110 # set by the configure script's `--srcdir' option.
111 srcdir=@srcdir@
113 # Tell make where to find source files; this is needed for the makefiles.
114 VPATH=@srcdir@
116 # Where to find the application default.
117 x_default_search_path=@x_default_search_path@
119 # ==================== Emacs-specific directories ====================
121 # These variables hold the values Emacs will actually use. They are
122 # based on the values of the standard Make variables above.
124 # Where to install the lisp files distributed with
125 # Emacs. This includes the Emacs version, so that the
126 # lisp files for different versions of Emacs will install
127 # themselves in separate directories.
128 lispdir=@lispdir@
130 # Directories Emacs should search for lisp files specific
131 # to this site (i.e. customizations), before consulting
132 # ${lispdir}. This should be a colon-separated list of
133 # directories.
134 locallisppath=@locallisppath@
136 # Where Emacs will search to find its lisp files. Before
137 # changing this, check to see if your purpose wouldn't
138 # better be served by changing locallisppath. This
139 # should be a colon-separated list of directories.
140 lisppath=@lisppath@
142 # Where Emacs will search for its lisp files while
143 # building. This is only used during the process of
144 # compiling Emacs, to help Emacs find its lisp files
145 # before they've been installed in their final location.
146 # It's usually identical to lisppath, except that
147 # it does not include locallisppath, and the
148 # entry for the directory containing the installed lisp
149 # files has been replaced with ../lisp. This should be a
150 # colon-separated list of directories.
151 buildlisppath=${srcdir}/lisp
153 # Where to install the other architecture-independent
154 # data files distributed with Emacs (like the tutorial,
155 # the cookie recipes and the Zippy database). This path
156 # usually contains the Emacs version number, so the data
157 # files for multiple versions of Emacs may be installed
158 # at once.
159 etcdir=@etcdir@
161 # Where to put executables to be run by Emacs rather than
162 # the user. This path usually includes the Emacs version
163 # and configuration name, so that multiple configurations
164 # for multiple versions of Emacs may be installed at
165 # once.
166 archlibdir=@archlibdir@
168 # Where to put the docstring file.
169 docdir=@docdir@
171 # ==================== Utility Programs for the Build ====================
173 # Allow the user to specify the install program.
174 INSTALL = @INSTALL@
175 INSTALL_PROGRAM = @INSTALL_PROGRAM@
176 INSTALL_DATA = @INSTALL_DATA@
177 INSTALL_INFO = install-info
178 # By default, we uphold the dignity of our programs.
179 INSTALL_STRIP =
181 # ============================= Targets ==============================
183 # What emacs should be called when installed.
184 EMACS = emacs
186 # Subdirectories to make recursively. `lisp' is not included
187 # because the compiled lisp files are part of the distribution
188 # and you cannot remake them without installing Emacs first.
189 SUBDIR = lib-src src leim
191 # The makefiles of the directories in $SUBDIR.
192 SUBDIR_MAKEFILES = lib-src/Makefile man/Makefile src/Makefile oldXMenu/Makefile lwlib/Makefile leim/Makefile
194 # Subdirectories to install, and where they'll go.
195 # lib-src's makefile knows how to install it, so we don't do that here.
196 # leim's makefile also knows how to install it, so we don't do that here.
197 # When installing the info files, we need to do special things to
198 # avoid nuking an existing dir file, so we don't do that here;
199 # instead, we have written out explicit code in the `install' targets.
200 COPYDIR = ${srcdir}/etc ${srcdir}/lisp
201 COPYDESTS = ${etcdir} ${lispdir}
203 all: ${SUBDIR}
205 removenullpaths=sed -e 's/^://g' -e 's/:$$//g' -e 's/::/:/g'
207 # Generate paths.h from paths.in. This target is invoked by `configure'.
208 paths-force: FRC
209 @(lisppath=`echo ${lisppath} | ${removenullpaths}` ; \
210 buildlisppath=`echo ${buildlisppath} | ${removenullpaths}` ; \
211 x_default_search_path=`echo ${x_default_search_path}`; \
212 sed < ${srcdir}/src/paths.in > paths.h.$$$$ \
213 -e 's;\(#.*PATH_LOADSEARCH\).*$$;\1 "'$${lisppath}'";' \
214 -e 's;\(#.*PATH_DUMPLOADSEARCH\).*$$;\1 "'$${buildlisppath}'";' \
215 -e 's;\(#.*PATH_EXEC\).*$$;\1 "${archlibdir}";' \
216 -e 's;\(#.*PATH_INFO\).*$$;\1 "${infodir}";' \
217 -e 's;\(#.*PATH_DATA\).*$$;\1 "${etcdir}";' \
218 -e 's;\(#.*PATH_BITMAPS\).*$$;\1 "${bitmapdir}";' \
219 -e 's;\(#.*PATH_X_DEFAULTS\).*$$;\1 "${x_default_search_path}";' \
220 -e 's;\(#.*PATH_DOC\).*$$;\1 "${docdir}";') && \
221 ${srcdir}/move-if-change paths.h.$$$$ src/paths.h
223 # For parallel make, src should be build before leim.
224 leim: src
226 src: lib-src FRC
228 lib-src: FRC src/config.stamp
230 .RECURSIVE: ${SUBDIR}
232 ${SUBDIR}: ${SUBDIR_MAKEFILES} FRC
233 cd $@; $(MAKE) all $(MFLAGS) \
234 CC='${CC}' CFLAGS='${CFLAGS}' CPPFLAGS='${CPPFLAGS}' \
235 LDFLAGS='${LDFLAGS}' MAKE='${MAKE}'
237 blessmail: ${SUBDIR_MAKEFILES} src FRC
238 cd lib-src; $(MAKE) maybe-blessmail $(MFLAGS) \
239 MAKE='${MAKE}' archlibdir='$(archlibdir)'
241 Makefile: Makefile.in config.status
242 ./config.status
244 src/Makefile: src/Makefile.in config.status
245 ./config.status
247 src/config.stamp: src/config.in config.status
248 ./config.status
249 touch src/config.stamp
251 lib-src/Makefile: lib-src/Makefile.in config.status
252 ./config.status
254 man/Makefile: man/Makefile.in config.status
255 ./config.status
257 oldXMenu/Makefile: oldXMenu/Makefile.in config.status
258 ./config.status
260 lwlib/Makefile: lwlib/Makefile.in config.status
261 ./config.status
263 leim/Makefile: leim/Makefile.in config.status
264 ./config.status
266 # ==================== Installation ====================
268 ## If we let lib-src do its own installation, that means we
269 ## don't have to duplicate the list of utilities to install in
270 ## this Makefile as well.
272 ## On AIX, use tar xBf.
273 ## On Xenix, use tar xpf.
275 .PHONY: install mkdir
277 ## We delete each directory in ${COPYDESTS} before we copy into it;
278 ## that way, we can reinstall over directories that have been put in
279 ## place with their files read-only (perhaps because they are checked
280 ## into RCS). In order to make this safe, we make sure that the
281 ## source exists and is distinct from the destination.
282 ### We do install-arch-indep first because
283 ### the executable needs the Lisp files and DOC file to work properly.
284 install: all install-arch-indep install-arch-dep install-leim blessmail
285 @true
287 ### Install the executables that were compiled specifically for this machine.
288 ### It would be nice to do something for a parallel make
289 ### to ensure that install-arch-indep finishes before this starts.
290 install-arch-dep: mkdir
291 (cd lib-src; \
292 $(MAKE) install $(MFLAGS) prefix=${prefix} \
293 exec_prefix=${exec_prefix} bindir=${bindir} \
294 libexecdir=${libexecdir} archlibdir=${archlibdir} \
295 INSTALL_STRIP=${INSTALL_STRIP})
296 ${INSTALL_PROGRAM} $(INSTALL_STRIP) src/emacs ${bindir}/emacs-${version}
297 -chmod 1755 ${bindir}/emacs-${version}
298 rm -f ${bindir}/$(EMACS)
299 -ln ${bindir}/emacs-${version} ${bindir}/$(EMACS)
301 ### Install the files that are machine-independent.
302 ### Most of them come straight from the distribution;
303 ### the exception is the DOC-* files, which are copied
304 ## from the build directory.
306 ## Note that we copy DOC* and then delete DOC
307 ## as a workaround for a bug in tar on Ultrix 4.2.
308 install-arch-indep: mkdir
309 -set ${COPYDESTS} ; \
310 for dir in ${COPYDIR} ; do \
311 if [ `(cd $$1 && /bin/pwd)` != `(cd $${dir} && /bin/pwd)` ] ; then \
312 rm -rf $$1 ; \
313 fi ; \
314 shift ; \
315 done
316 -set ${COPYDESTS} ; \
317 mkdir ${COPYDESTS} ; \
318 chmod ugo+rx ${COPYDESTS} ; \
319 for dir in ${COPYDIR} ; do \
320 dest=$$1 ; shift ; \
321 [ -d $${dir} ] \
322 && [ `(cd $${dir} && /bin/pwd)` != `(cd $${dest} && /bin/pwd)` ] \
323 && (echo "Copying $${dir} to $${dest}..." ; \
324 (cd $${dir}; tar -cf - . ) \
325 |(cd $${dest};umask 022; tar -xvf - && cat > /dev/null); \
326 for subdir in `find $${dest} -type d ! -name RCS -print` ; do \
327 chmod a+rx $${subdir} ; \
328 rm -rf $${subdir}/RCS ; \
329 rm -rf $${subdir}/CVS ; \
330 rm -f $${subdir}/\#* ; \
331 rm -f $${subdir}/.\#* ; \
332 rm -f $${subdir}/*~ ; \
333 rm -f $${subdir}/*.orig ; \
334 rm -f $${subdir}/[mM]akefile* ; \
335 rm -f $${subdir}/ChangeLog* ; \
336 rm -f $${subdir}/dired.todo ; \
337 done) ; \
338 done
339 -rm -f ${lispdir}/subdirs.el
340 $(srcdir)/update-subdirs ${lispdir}
341 -rm -f ${datadir}/emacs/${version}/site-lisp/subdirs.el
342 (echo "(if (fboundp 'normal-top-level-add-subdirs-to-load-path)"; \
343 echo " (normal-top-level-add-subdirs-to-load-path))") \
344 > ${datadir}/emacs/${version}/site-lisp/subdirs.el
345 chmod a+r ${datadir}/emacs/${version}/site-lisp/subdirs.el
346 -rm -f ${datadir}/emacs/site-lisp/subdirs.el
347 (echo "(if (fboundp 'normal-top-level-add-subdirs-to-load-path)"; \
348 echo " (normal-top-level-add-subdirs-to-load-path))") \
349 > ${datadir}/emacs/site-lisp/subdirs.el
350 chmod a+r ${datadir}/emacs/site-lisp/subdirs.el
351 if [ `(cd ./etc; /bin/pwd)` != `(cd ${docdir}; /bin/pwd)` ]; \
352 then \
353 echo "Copying etc/DOC-* to ${docdir} ..." ; \
354 (cd ./etc; tar -cf - DOC*) \
355 |(cd ${docdir}; umask 0; tar -xvf - && cat > /dev/null); \
356 (cd $(docdir); chmod a+r DOC*; rm DOC); \
357 else true; fi
358 if [ -r ./lisp ] \
359 && [ -r ./lisp/simple.el ] \
360 && [ x`(cd ./lisp; /bin/pwd)` != x`(cd ${lispdir}; /bin/pwd)` ] \
361 && [ x`(cd ${srcdir}/lisp; /bin/pwd)` != x`(cd ./lisp; /bin/pwd)` ]; \
362 then \
363 echo "Copying lisp/*.el and lisp/*.elc to ${lispdir} ..." ; \
364 (cd lisp; tar -cf - *.el *.elc) \
365 |(cd ${lispdir}; umask 0; tar -xvf - && cat > /dev/null); \
366 else true; fi
367 thisdir=`/bin/pwd`; \
368 if [ `(cd ${srcdir}/info && /bin/pwd)` != `(cd ${infodir} && /bin/pwd)` ]; \
369 then \
370 (cd ${infodir}; \
371 if [ -f dir ]; then true; \
372 else \
373 (cd $${thisdir}; \
374 ${INSTALL_DATA} ${srcdir}/info/dir ${infodir}/dir; \
375 chmod a+r ${infodir}/dir); \
376 fi; \
377 cd ${srcdir}/info ; \
378 for f in ccmode* cl* customize* dired-x* ediff* emacs* forms* gnus* info* message* mh-e* reftex* sc* vip* widget*; do \
379 (cd $${thisdir}; \
380 ${INSTALL_DATA} ${srcdir}/info/$$f ${infodir}/$$f; \
381 chmod a+r ${infodir}/$$f; \
382 ${INSTALL_INFO} --info-file=$$f); \
383 done); \
384 else true; fi
385 -chmod -R a+r ${COPYDESTS} ${infodir}
386 thisdir=`/bin/pwd`; \
387 cd ${srcdir}/etc; \
388 for page in emacs etags ctags ; do \
389 (cd $${thisdir}; \
390 ${INSTALL_DATA} ${srcdir}/etc/$${page}.1 ${man1dir}/$${page}${manext}; \
391 chmod a+r ${man1dir}/$${page}${manext}); \
392 done
394 ### Install LEIM files. Although they are machine-independent, we
395 ### have separate target here instead of including it in
396 ### `install-arch-indep'. People who extracted LEIM files after they
397 ### insalled Emacs itself can install only LEIM files by this target.
398 install-leim: leim/Makefile mkdir
399 cd leim; $(MAKE) install
401 ### Build Emacs and install it, stripping binaries while installing them.
402 install-strip:
403 $(MAKE) INSTALL_STRIP=-s
405 ### Build all the directories we're going to install Emacs in. Since
406 ### we may be creating several layers of directories (for example,
407 ### /usr/local/lib/emacs/19.0/mips-dec-ultrix4.2), we use mkinstalldirs
408 ### instead of mkdir. Not all systems' mkdir programs have the `-p' flag.
409 mkdir: FRC
410 $(srcdir)/mkinstalldirs ${COPYDESTS} ${infodir} ${man1dir} \
411 ${bindir} ${datadir} ${docdir} ${libexecdir} \
412 ${datadir}/emacs/site-lisp \
413 ${datadir}/emacs/${version}/site-lisp \
414 `echo ${locallisppath} | sed 's/:/ /g'`
416 ### Delete all the installed files that the `install' target would
417 ### create (but not the noninstalled files such as `make all' would
418 ### create).
420 ### Don't delete the lisp and etc directories if they're in the source tree.
421 uninstall:
422 (cd lib-src; \
423 $(MAKE) $(MFLAGS) uninstall \
424 prefix=${prefix} exec_prefix=${exec_prefix} \
425 bindir=${bindir} libexecdir=${libexecdir} archlibdir=${archlibdir})
426 for dir in ${lispdir} ${etcdir} ; do \
427 if [ -d $${dir} ]; then \
428 case `(cd $${dir} ; /bin/pwd)` in \
429 `(cd ${srcdir} ; /bin/pwd)`* ) ;; \
430 * ) rm -rf $${dir} ;; \
431 esac ; \
432 case $${dir} in \
433 ${datadir}/emacs/${version}/* ) \
434 rm -rf ${datadir}/emacs/${version} \
435 ;; \
436 esac ; \
437 fi ; \
438 done
439 (cd ${infodir} && rm -f cl* dired-x* ediff* emacs* forms* gnus* info* mh-e* sc* vip*)
440 (cd ${man1dir} && rm -f emacs.1 etags.1 ctags.1)
441 (cd ${bindir} && rm -f emacs-${version} $(EMACS))
444 FRC:
446 # ==================== Cleaning up and miscellanea ====================
448 .PHONY: mostlyclean clean distclean maintainer-clean extraclean
450 ### `mostlyclean'
451 ### Like `clean', but may refrain from deleting a few files that people
452 ### normally don't want to recompile. For example, the `mostlyclean'
453 ### target for GCC does not delete `libgcc.a', because recompiling it
454 ### is rarely necessary and takes a lot of time.
455 mostlyclean: FRC
456 (cd src; $(MAKE) $(MFLAGS) mostlyclean)
457 (cd oldXMenu; $(MAKE) $(MFLAGS) mostlyclean)
458 (cd lwlib; $(MAKE) $(MFLAGS) mostlyclean)
459 (cd lib-src; $(MAKE) $(MFLAGS) mostlyclean)
460 -(cd man && $(MAKE) $(MFLAGS) mostlyclean)
461 (cd leim; $(MAKE) $(MFLAGS) mostlyclean)
463 ### `clean'
464 ### Delete all files from the current directory that are normally
465 ### created by building the program. Don't delete the files that
466 ### record the configuration. Also preserve files that could be made
467 ### by building, but normally aren't because the distribution comes
468 ### with them.
469 ###
470 ### Delete `.dvi' files here if they are not part of the distribution.
471 clean: FRC
472 (cd src; $(MAKE) $(MFLAGS) clean)
473 (cd oldXMenu; $(MAKE) $(MFLAGS) clean)
474 (cd lwlib; $(MAKE) $(MFLAGS) clean)
475 (cd lib-src; $(MAKE) $(MFLAGS) clean)
476 -(cd man && $(MAKE) $(MFLAGS) clean)
477 (cd leim; $(MAKE) $(MFLAGS) clean)
479 ### `distclean'
480 ### Delete all files from the current directory that are created by
481 ### configuring or building the program. If you have unpacked the
482 ### source and built the program without creating any other files,
483 ### `make distclean' should leave only the files that were in the
484 ### distribution.
485 top_distclean=\
486 rm -f config.status config.cache config.log ; \
487 rm -f Makefile ${SUBDIR_MAKEFILES} ; \
488 if [ -d lock ] ; then (cd lock && (rm -f * || true)); else true; fi
489 distclean: FRC
490 (cd src; $(MAKE) $(MFLAGS) distclean)
491 (cd oldXMenu; $(MAKE) $(MFLAGS) distclean)
492 (cd lwlib; $(MAKE) $(MFLAGS) distclean)
493 (cd lib-src; $(MAKE) $(MFLAGS) distclean)
494 (cd man && $(MAKE) $(MFLAGS) distclean)
495 (cd leim; $(MAKE) $(MFLAGS) distclean)
496 ${top_distclean}
498 ### `maintainer-clean'
499 ### Delete everything from the current directory that can be
500 ### reconstructed with this Makefile. This typically includes
501 ### everything deleted by distclean, plus more: C source files
502 ### produced by Bison, tags tables, info files, and so on.
503 ###
504 ### One exception, however: `make maintainer-clean' should not delete
505 ### `configure' even if `configure' can be remade using a rule in the
506 ### Makefile. More generally, `make maintainer-clean' should not delete
507 ### anything that needs to exist in order to run `configure' and then
508 ### begin to build the program.
509 maintainer-clean: FRC
510 (cd src; $(MAKE) $(MFLAGS) maintainer-clean)
511 (cd oldXMenu; $(MAKE) $(MFLAGS) maintainer-clean)
512 (cd lwlib; $(MAKE) $(MFLAGS) maintainer-clean)
513 (cd lib-src; $(MAKE) $(MFLAGS) maintainer-clean)
514 -(cd man && $(MAKE) $(MFLAGS) maintainer-clean)
515 (cd leim; $(MAKE) $(MFLAGS) maintainer-clean)
516 ${top_distclean}
518 ### This doesn't actually appear in the coding standards, but Karl
519 ### says GCC supports it, and that's where the configuration part of
520 ### the coding standards seem to come from. It's like distclean, but
521 ### it deletes backup and autosave files too.
522 extraclean:
523 for i in ${SUBDIR}; do (cd $$i; $(MAKE) $(MFLAGS) extraclean); done
524 ${top_distclean}
525 -rm config-tmp-*
526 -rm -f *~ \#*
528 ### Unlocking and relocking. The idea of these productions is to reduce
529 ### hassles when installing an incremental tar of Emacs. Do `make unlock'
530 ### before unlocking the file to take the write locks off all sources so
531 ### that tar xvof will overwrite them without fuss. Then do `make relock'
532 ### afterward so that VC mode will know which files should be checked in
533 ### if you want to mung them.
535 ### Note: it's no disaster if these productions miss a file or two; tar
536 ### and VC will swiftly let you know if this happens, and it is easily
537 ### corrected.
538 SOURCES = ChangeLog GETTING.GNU.SOFTWARE INSTALL Makefile.in \
539 README configure make-dist move-if-change
541 .PHONY: unlock relock
543 unlock:
544 chmod u+w $(SOURCES)
545 -(cd elisp; chmod u+w Makefile README *.texi)
546 (cd etc; $(MAKE) $(MFLAGS) unlock)
547 (cd lib-src; $(MAKE) $(MFLAGS) unlock)
548 (cd lisp; $(MAKE) $(MFLAGS) unlock)
549 (cd lisp/term; chmod u+w README *.el)
550 (cd man; chmod u+w *texi* ChangeLog split-man)
551 (cd oldXMenu; chmod u+w *.[ch] Makefile README)
552 (cd lwlib; chmod u+w *.[ch] Makefile README)
553 (cd src; $(MAKE) $(MFLAGS) unlock)
555 relock:
556 chmod u-w $(SOURCES)
557 -(cd elisp; chmod u-w Makefile README *.texi)
558 (cd etc; $(MAKE) $(MFLAGS) relock)
559 (cd lib-src; $(MAKE) $(MFLAGS) relock)
560 (cd lisp; $(MAKE) $(MFLAGS) relock)
561 (cd lisp/term; chmod u+w README *.el)
562 (cd man; chmod u+w *texi* ChangeLog split-man)
563 (cd oldXMenu; chmod u+w *.[ch] Makefile README)
564 (cd lwlib; chmod u+w *.[ch] Makefile README)
565 (cd src; $(MAKE) $(MFLAGS) relock)
567 TAGS tags: lib-src src
568 # The src subdir knows how to do the right thing
569 # even when the build directory and source dir are different.
570 cd src; $(MAKE) tags
572 check:
573 @echo "We don't have any tests for GNU Emacs yet."
575 dist:
576 cd ${srcdir}; make-dist
578 .PHONY: info dvi dist check
579 force-info:
580 info: force-info
581 # Note that man/Makefile knows how to
582 # put the info files in $(srcdir),
583 # so we can do ok running make in the build dir.
584 (cd man; $(MAKE) $(MFLAGS) info)
585 dvi:
586 (cd man; $(MAKE) $(MFLAGS) dvi)