(Fprin1_to_string): Preserve Vdeactivate_mark.
[emacs.git] / Makefile.in
blob733133c5a2a2f6cef549e6878092db3f5c644d2a
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 C_SWITCH_X_SITE=@C_SWITCH_X_SITE@
48 LD_SWITCH_X_SITE=@LD_SWITCH_X_SITE@
49 YACC=@YACC@
51 ### These help us choose version- and architecture-specific directories
52 ### to install files in.
54 ### This should be the number of the Emacs version we're building,
55 ### like `18.59' or `19.0'.
56 version=@version@
58 ### This should be the name of the configuration we're building Emacs
59 ### for, like `mips-dec-ultrix' or `sparc-sun-sunos'.
60 configuration=@configuration@
62 # ==================== Where To Install Things ====================
64 # The default location for installation. Everything is placed in
65 # subdirectories of this directory. The default values for many of
66 # the variables below are expressed in terms of this one, so you may
67 # not need to change them. This defaults to /usr/local.
68 prefix=@prefix@
70 # Like `prefix', but used for architecture-specific files.
71 exec_prefix=@exec_prefix@
73 # Where to install Emacs and other binaries that people will want to
74 # run directly (like etags).
75 bindir=@bindir@
77 # Where to install architecture-independent data files. ${lispdir}
78 # and ${etcdir} are subdirectories of this.
79 datadir=@datadir@
81 # Where to install and expect the files that Emacs modifies as it
82 # runs. These files are all architecture-independent. Right now, the
83 # only such data is the locking directory; ${lockdir} is a
84 # subdirectory of this.
85 sharedstatedir=@sharedstatedir@
87 # Where to install and expect executable files to be run by Emacs
88 # rather than directly by users, and other architecture-dependent
89 # data. ${archlibdir} is a subdirectory of this.
90 libexecdir=@libexecdir@
92 # Where to install Emacs's man pages, and what extension they should have.
93 mandir=@mandir@
94 manext=.1
95 man1dir=$(mandir)/man1
97 # Where to install and expect the info files describing Emacs. In the
98 # past, this defaulted to a subdirectory of ${prefix}/lib/emacs, but
99 # since there are now many packages documented with the texinfo
100 # system, it is inappropriate to imply that it is part of Emacs.
101 infodir=@infodir@
103 # Where to look for bitmap files.
104 bitmapdir=@bitmapdir@
106 # Where to find the source code. The source code for Emacs's C kernel is
107 # expected to be in ${srcdir}/src, and the source code for Emacs's
108 # utility programs is expected to be in ${srcdir}/lib-src. This is
109 # set by the configure script's `--srcdir' option.
110 srcdir=@srcdir@
112 # Tell make where to find source files; this is needed for the makefiles.
113 VPATH=@srcdir@
115 # ==================== Emacs-specific directories ====================
117 # These variables hold the values Emacs will actually use. They are
118 # based on the values of the standard Make variables above.
120 # Where to install the lisp files distributed with
121 # Emacs. This includes the Emacs version, so that the
122 # lisp files for different versions of Emacs will install
123 # themselves in separate directories.
124 lispdir=@lispdir@
126 # Directories Emacs should search for lisp files specific
127 # to this site (i.e. customizations), before consulting
128 # ${lispdir}. This should be a colon-separated list of
129 # directories.
130 locallisppath=@locallisppath@
132 # Where Emacs will search to find its lisp files. Before
133 # changing this, check to see if your purpose wouldn't
134 # better be served by changing locallisppath. This
135 # should be a colon-separated list of directories.
136 lisppath=@lisppath@
138 # Where Emacs will search for its lisp files while
139 # building. This is only used during the process of
140 # compiling Emacs, to help Emacs find its lisp files
141 # before they've been installed in their final location.
142 # It's usually identical to lisppath, except that
143 # it does not include locallisppath, and the
144 # entry for the directory containing the installed lisp
145 # files has been replaced with ../lisp. This should be a
146 # colon-separated list of directories.
147 buildlisppath=${srcdir}/lisp
149 # Where to install the other architecture-independent
150 # data files distributed with Emacs (like the tutorial,
151 # the cookie recipes and the Zippy database). This path
152 # usually contains the Emacs version number, so the data
153 # files for multiple versions of Emacs may be installed
154 # at once.
155 etcdir=@etcdir@
157 # Where to create and expect the locking directory, where
158 # the Emacs locking code keeps track of which files are
159 # currently being edited.
160 lockdir=@lockdir@
162 # Where to put executables to be run by Emacs rather than
163 # the user. This path usually includes the Emacs version
164 # and configuration name, so that multiple configurations
165 # for multiple versions of Emacs may be installed at
166 # once.
167 archlibdir=@archlibdir@
169 # Where to put the docstring file.
170 docdir=@docdir@
172 # ==================== Utility Programs for the Build ====================
174 # Allow the user to specify the install program.
175 INSTALL = @INSTALL@
176 INSTALL_PROGRAM = @INSTALL_PROGRAM@
177 INSTALL_DATA = @INSTALL_DATA@
179 # ============================= Targets ==============================
181 # What emacs should be called when installed.
182 EMACS = emacs
184 # Subdirectories to make recursively. `lisp' is not included
185 # because the compiled lisp files are part of the distribution
186 # and you cannot remake them without installing Emacs first.
187 SUBDIR = lib-src src
189 # The makefiles of the directories in $SUBDIR.
190 SUBDIR_MAKEFILES = lib-src/Makefile man/Makefile src/Makefile oldXMenu/Makefile lwlib/Makefile
192 # Subdirectories to install, and where they'll go.
193 # lib-src's makefile knows how to install it, so we don't do that here.
194 # When installing the info files, we need to do special things to
195 # avoid nuking an existing dir file, so we don't do that here;
196 # instead, we have written out explicit code in the `install' targets.
197 COPYDIR = ${srcdir}/etc ${srcdir}/lisp
198 COPYDESTS = ${etcdir} ${lispdir}
200 all: paths-force ${SUBDIR}
202 removenullpaths=sed -e 's/^://g' -e 's/:$$//g' -e 's/::/:/g'
204 # Note that sed is not in /bin on 386bsd.
205 src/paths.h: Makefile ${srcdir}/src/paths.in
206 @echo "Producing \`src/paths.h' from \`src/paths.in'."
207 @(lisppath=`echo ${lisppath} | ${removenullpaths}` ; \
208 buildlisppath=`echo ${buildlisppath} | ${removenullpaths}` ; \
209 sed < ${srcdir}/src/paths.in > paths.h.$$$$ \
210 -e 's;\(#.*PATH_LOADSEARCH\).*$$;\1 "'$${lisppath}'";' \
211 -e 's;\(#.*PATH_DUMPLOADSEARCH\).*$$;\1 "'$${buildlisppath}'";' \
212 -e 's;\(#.*PATH_EXEC\).*$$;\1 "${archlibdir}";' \
213 -e 's;\(#.*PATH_INFO\).*$$;\1 "${infodir}";' \
214 -e 's;\(#.*PATH_DATA\).*$$;\1 "${etcdir}";' \
215 -e 's;\(#.*PATH_BITMAPS\).*$$;\1 "${bitmapdir}";' \
216 -e 's;\(#.*PATH_DOC\).*$$;\1 "${docdir}";' \
217 -e 's;\(#.*PATH_LOCK\).*$$;\1 "${lockdir}/";') && \
218 ${srcdir}/move-if-change paths.h.$$$$ src/paths.h
220 # For `make all',
221 # we force the rebuilding of src/paths.h because the user might give
222 # make different values for the various directories. Since we use
223 # move-if-change, src/paths.h only actually changes if the user did
224 # something notable, so the only unnecessary work we do is in building
225 # paths.h.$$, which isn't much.
226 # Note that sed is not in /bin on 386bsd.
227 # We depend on src/paths.h here to prevent simultaneous execution of
228 # that rule and this one, in a parallel make.
229 # It is possible for paths.h to be updated twice--but that would happen anyway.
230 paths-force: FRC src/paths.h
231 @echo "Producing \`src/paths.h' from \`src/paths.in'."
232 @(lisppath=`echo ${lisppath} | ${removenullpaths}` ; \
233 buildlisppath=`echo ${buildlisppath} | ${removenullpaths}` ; \
234 sed < ${srcdir}/src/paths.in > paths.h.$$$$ \
235 -e 's;\(#.*PATH_LOADSEARCH\).*$$;\1 "'$${lisppath}'";' \
236 -e 's;\(#.*PATH_DUMPLOADSEARCH\).*$$;\1 "'$${buildlisppath}'";' \
237 -e 's;\(#.*PATH_EXEC\).*$$;\1 "${archlibdir}";' \
238 -e 's;\(#.*PATH_INFO\).*$$;\1 "${infodir}";' \
239 -e 's;\(#.*PATH_DATA\).*$$;\1 "${etcdir}";' \
240 -e 's;\(#.*PATH_BITMAPS\).*$$;\1 "${bitmapdir}";' \
241 -e 's;\(#.*PATH_DOC\).*$$;\1 "${docdir}";' \
242 -e 's;\(#.*PATH_LOCK\).*$$;\1 "${lockdir}/";') && \
243 ${srcdir}/move-if-change paths.h.$$$$ src/paths.h
245 src: lib-src FRC src/paths.h
247 # This ought to depend on src/paths.h, so that in parallel make
248 # src/paths.h will be available for the compilations in lib-src.
249 # But that causes trouble in `make install' if a different prefix
250 # is specified at that time.
251 lib-src: FRC src/paths.h
253 .RECURSIVE: ${SUBDIR}
255 ${SUBDIR}: ${SUBDIR_MAKEFILES} FRC
256 cd $@; $(MAKE) all $(MFLAGS) \
257 CC='${CC}' CFLAGS='${CFLAGS}' CPPFLAGS='${CPPFLAGS}' \
258 LDFLAGS='${LDFLAGS}' MAKE='${MAKE}'
260 blessmail: ${SUBDIR_MAKEFILES} src FRC
261 cd lib-src; $(MAKE) maybe-blessmail $(MFLAGS) \
262 MAKE='${MAKE}' archlibdir='$(archlibdir)'
264 Makefile: Makefile.in config.status
265 ./config.status
267 src/Makefile: src/Makefile.in config.status
268 ./config.status
270 lib-src/Makefile: lib-src/Makefile.in config.status
271 ./config.status
273 oldXMenu/Makefile: oldXMenu/Makefile.in config.status
274 ./config.status
276 lwlib/Makefile: lwlib/Makefile.in config.status
277 ./config.status
279 # ==================== Installation ====================
281 ## If we let lib-src do its own installation, that means we
282 ## don't have to duplicate the list of utilities to install in
283 ## this Makefile as well.
285 ## On AIX, use tar xBf.
286 ## On Xenix, use tar xpf.
288 .PHONY: install mkdir
290 ## We delete each directory in ${COPYDESTS} before we copy into it;
291 ## that way, we can reinstall over directories that have been put in
292 ## place with their files read-only (perhaps because they are checked
293 ## into RCS). In order to make this safe, we make sure that the
294 ## source exists and is distinct from the destination.
295 ## We don't depend on `all', but rather on ${SUBDIR}, so that we won't
296 ## ever modify src/paths.h.
297 ### We do install-arch-indep first because
298 ### the executable needs the Lisp files and DOC file to work properly.
299 install: ${SUBDIR} install-arch-indep install-arch-dep blessmail
300 @true
302 ### Install the executables that were compiled specifically for this machine.
303 ### It would be nice to do something for a parallel make
304 ### to ensure that install-arch-indep finishes before this starts.
305 install-arch-dep: mkdir
306 (cd lib-src; \
307 $(MAKE) install $(MFLAGS) prefix=${prefix} \
308 exec_prefix=${exec_prefix} bindir=${bindir} \
309 libexecdir=${libexecdir} archlibdir=${archlibdir})
310 ${INSTALL_PROGRAM} src/emacs ${bindir}/emacs-${version}
311 -chmod 1755 ${bindir}/emacs-${version}
312 rm -f ${bindir}/$(EMACS)
313 -ln ${bindir}/emacs-${version} ${bindir}/$(EMACS)
315 ### Install the files that are machine-independent.
316 ### Most of them come straight from the distribution;
317 ### the exception is the DOC-* files, which are copied
318 ### from the build directory.
320 ### Note that we copy DOC* and then delete DOC
321 ### as a workaround for a bug in tar on Ultrix 4.2.
322 install-arch-indep: mkdir
323 -set ${COPYDESTS} ; \
324 for dir in ${COPYDIR} ; do \
325 if [ `(cd $$1 && /bin/pwd)` != `(cd $${dir} && /bin/pwd)` ] ; then \
326 rm -rf $$1 ; \
327 fi ; \
328 shift ; \
329 done
330 -set ${COPYDESTS} ; \
331 mkdir ${COPYDESTS} ; \
332 chmod ugo+rx ${COPYDESTS} ; \
333 for dir in ${COPYDIR} ; do \
334 dest=$$1 ; shift ; \
335 [ -d $${dir} ] \
336 && [ `(cd $${dir} && /bin/pwd)` != `(cd $${dest} && /bin/pwd)` ] \
337 && (echo "Copying $${dir} to $${dest}..." ; \
338 (cd $${dir}; tar -cf - . )|(cd $${dest};umask 022; tar -xvf - ); \
339 for subdir in `find $${dest} -type d ! -name RCS -print` ; do \
340 rm -rf $${subdir}/RCS ; \
341 rm -rf $${subdir}/CVS ; \
342 rm -f $${subdir}/\#* ; \
343 rm -f $${subdir}/.\#* ; \
344 rm -f $${subdir}/*~ ; \
345 rm -f $${subdir}/*.orig ; \
346 rm -f $${subdir}/[mM]akefile* ; \
347 rm -f $${subdir}/ChangeLog* ; \
348 rm -f $${subdir}/dired.todo ; \
349 done) ; \
350 done
351 -rm -f ${lispdir}/subdirs.el
352 $(srcdir)/update-subdirs ${lispdir}
353 -chmod -R a+r ${COPYDESTS}
354 if [ `(cd ./etc; /bin/pwd)` != `(cd ${docdir}; /bin/pwd)` ]; \
355 then \
356 echo "Copying etc/DOC-* to ${docdir} ..." ; \
357 (cd etc; tar -cf - DOC*)|(cd ${docdir}; umask 0; tar -xvf - ); \
358 (cd $(docdir); chmod a+r DOC*; rm DOC) \
359 else true; fi
360 if [ 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)|(cd ${lispdir}; umask 0; tar -xvf - ); \
365 else true; fi
366 thisdir=`/bin/pwd`; \
367 if [ `(cd ${srcdir}/info && /bin/pwd)` != `(cd ${infodir} && /bin/pwd)` ]; \
368 then \
369 (cd ${infodir}; \
370 if [ -f dir ]; then \
371 if [ ! -f dir.old ]; then mv -f dir dir.old; \
372 else mv -f dir dir.bak; fi; \
373 fi; \
374 cd ${srcdir}/info ; \
375 (cd $${thisdir}; ${INSTALL_DATA} ${srcdir}/info/dir ${infodir}/dir); \
376 (cd $${thisdir}; chmod a+r ${infodir}/dir); \
377 for f in ccmode* cl* dired-x* ediff* emacs* forms* gnus* info* mh-e* sc* vip*; do \
378 (cd $${thisdir}; \
379 ${INSTALL_DATA} ${srcdir}/info/$$f ${infodir}/$$f; \
380 chmod a+r ${infodir}/$$f); \
381 done); \
382 else true; fi
383 thisdir=`/bin/pwd`; \
384 cd ${srcdir}/etc; \
385 for page in emacs etags ctags ; do \
386 (cd $${thisdir}; \
387 ${INSTALL_DATA} ${srcdir}/etc/$${page}.1 ${man1dir}/$${page}${manext}; \
388 chmod a+r ${man1dir}/$${page}${manext}); \
389 done
391 ### Build Emacs and install it, stripping binaries while installing them.
392 install-strip:
393 $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install
395 ### Build all the directories we're going to install Emacs in. Since
396 ### we may be creating several layers of directories (for example,
397 ### /usr/local/lib/emacs/19.0/mips-dec-ultrix4.2), we use mkinstalldirs
398 ### instead of mkdir. Not all systems' mkdir programs have the `-p' flag.
399 mkdir: FRC
400 $(srcdir)/mkinstalldirs ${COPYDESTS} ${lockdir} ${infodir} ${man1dir} \
401 ${bindir} ${datadir} ${docdir} ${libexecdir} \
402 `echo ${locallisppath} | sed 's/:/ /g'`
403 -chmod a+rwx ${lockdir}
405 ### Delete all the installed files that the `install' target would
406 ### create (but not the noninstalled files such as `make all' would
407 ### create).
409 ### Don't delete the lisp and etc directories if they're in the source tree.
410 uninstall:
411 (cd lib-src; \
412 $(MAKE) $(MFLAGS) uninstall \
413 prefix=${prefix} exec_prefix=${exec_prefix} \
414 bindir=${bindir} libexecdir=${libexecdir} archlibdir=${archlibdir})
415 for dir in ${lispdir} ${etcdir} ; do \
416 if [ -d $${dir} ]; then \
417 case `(cd $${dir} ; /bin/pwd)` in \
418 `(cd ${srcdir} ; /bin/pwd)`* ) ;; \
419 * ) rm -rf $${dir} ;; \
420 esac ; \
421 case $${dir} in \
422 ${datadir}/emacs/${version}/* ) \
423 rm -rf ${datadir}/emacs/${version} \
424 ;; \
425 esac ; \
426 fi ; \
427 done
428 (cd ${infodir} && rm -f cl* dired-x* ediff* emacs* forms* gnus* info* mh-e* sc* vip*)
429 (cd ${man1dir} && rm -f emacs.1 etags.1 ctags.1)
430 (cd ${bindir} && rm -f emacs-${version} $(EMACS))
433 FRC:
435 # ==================== Cleaning up and miscellanea ====================
437 .PHONY: mostlyclean clean distclean maintainer-clean extraclean
439 ### `mostlyclean'
440 ### Like `clean', but may refrain from deleting a few files that people
441 ### normally don't want to recompile. For example, the `mostlyclean'
442 ### target for GCC does not delete `libgcc.a', because recompiling it
443 ### is rarely necessary and takes a lot of time.
444 mostlyclean: FRC
445 (cd src; $(MAKE) $(MFLAGS) mostlyclean)
446 (cd oldXMenu; $(MAKE) $(MFLAGS) mostlyclean)
447 (cd lwlib; $(MAKE) $(MFLAGS) mostlyclean)
448 (cd lib-src; $(MAKE) $(MFLAGS) mostlyclean)
449 -(cd man && $(MAKE) $(MFLAGS) mostlyclean)
451 ### `clean'
452 ### Delete all files from the current directory that are normally
453 ### created by building the program. Don't delete the files that
454 ### record the configuration. Also preserve files that could be made
455 ### by building, but normally aren't because the distribution comes
456 ### with them.
457 ###
458 ### Delete `.dvi' files here if they are not part of the distribution.
459 clean: FRC
460 (cd src; $(MAKE) $(MFLAGS) clean)
461 (cd oldXMenu; $(MAKE) $(MFLAGS) clean)
462 (cd lwlib; $(MAKE) $(MFLAGS) clean)
463 (cd lib-src; $(MAKE) $(MFLAGS) clean)
464 -(cd man && $(MAKE) $(MFLAGS) clean)
466 ### `distclean'
467 ### Delete all files from the current directory that are created by
468 ### configuring or building the program. If you have unpacked the
469 ### source and built the program without creating any other files,
470 ### `make distclean' should leave only the files that were in the
471 ### distribution.
472 top_distclean=\
473 rm -f config.status config.cache config.log ; \
474 rm -f Makefile ${SUBDIR_MAKEFILES} ; \
475 (cd lock && (rm * || true))
476 distclean: FRC
477 (cd src; $(MAKE) $(MFLAGS) distclean)
478 (cd oldXMenu; $(MAKE) $(MFLAGS) distclean)
479 (cd lwlib; $(MAKE) $(MFLAGS) distclean)
480 (cd lib-src; $(MAKE) $(MFLAGS) distclean)
481 (cd man && $(MAKE) $(MFLAGS) distclean)
482 ${top_distclean}
484 ### `maintainer-clean'
485 ### Delete everything from the current directory that can be
486 ### reconstructed with this Makefile. This typically includes
487 ### everything deleted by distclean, plus more: C source files
488 ### produced by Bison, tags tables, info files, and so on.
489 ###
490 ### One exception, however: `make maintainer-clean' should not delete
491 ### `configure' even if `configure' can be remade using a rule in the
492 ### Makefile. More generally, `make maintainer-clean' should not delete
493 ### anything that needs to exist in order to run `configure' and then
494 ### begin to build the program.
495 maintainer-clean: FRC
496 (cd src; $(MAKE) $(MFLAGS) maintainer-clean)
497 (cd oldXMenu; $(MAKE) $(MFLAGS) maintainer-clean)
498 (cd lwlib; $(MAKE) $(MFLAGS) maintainer-clean)
499 (cd lib-src; $(MAKE) $(MFLAGS) maintainer-clean)
500 -(cd man && $(MAKE) $(MFLAGS) maintainer-clean)
501 ${top_distclean}
503 ### This doesn't actually appear in the coding standards, but Karl
504 ### says GCC supports it, and that's where the configuration part of
505 ### the coding standards seem to come from. It's like distclean, but
506 ### it deletes backup and autosave files too.
507 extraclean:
508 for i in ${SUBDIR}; do (cd $$i; $(MAKE) $(MFLAGS) extraclean); done
509 ${top_distclean}
510 -rm config-tmp-*
511 -rm -f *~ \#*
513 ### Unlocking and relocking. The idea of these productions is to reduce
514 ### hassles when installing an incremental tar of Emacs. Do `make unlock'
515 ### before unlocking the file to take the write locks off all sources so
516 ### that tar xvof will overwrite them without fuss. Then do `make relock'
517 ### afterward so that VC mode will know which files should be checked in
518 ### if you want to mung them.
520 ### Note: it's no disaster if these productions miss a file or two; tar
521 ### and VC will swiftly let you know if this happens, and it is easily
522 ### corrected.
523 SOURCES = ChangeLog GETTING.GNU.SOFTWARE INSTALL Makefile.in PROBLEMS \
524 README configure make-dist move-if-change
526 .PHONY: unlock relock
528 unlock:
529 chmod u+w $(SOURCES) cpp/*
530 -(cd elisp; chmod u+w Makefile README *.texi)
531 (cd etc; $(MAKE) $(MFLAGS) unlock)
532 (cd lib-src; $(MAKE) $(MFLAGS) unlock)
533 (cd lisp; $(MAKE) $(MFLAGS) unlock)
534 (cd lisp/term; chmod u+w README *.el)
535 (cd man; chmod u+w *texi* ChangeLog split-man)
536 (cd oldXMenu; chmod u+w *.[ch] Makefile README)
537 (cd lwlib; chmod u+w *.[ch] Makefile README)
538 (cd src; $(MAKE) $(MFLAGS) unlock)
540 relock:
541 chmod u-w $(SOURCES) cpp/*
542 -(cd elisp; chmod u-w Makefile README *.texi)
543 (cd etc; $(MAKE) $(MFLAGS) relock)
544 (cd lib-src; $(MAKE) $(MFLAGS) relock)
545 (cd lisp; $(MAKE) $(MFLAGS) relock)
546 (cd lisp/term; chmod u+w README *.el)
547 (cd man; chmod u+w *texi* ChangeLog split-man)
548 (cd oldXMenu; chmod u+w *.[ch] Makefile README)
549 (cd lwlib; chmod u+w *.[ch] Makefile README)
550 (cd src; $(MAKE) $(MFLAGS) relock)
552 TAGS tags: lib-src
553 cd ${srcdir}/src; $(MAKE) tags
555 check:
556 @echo "We don't have any tests for GNU Emacs yet."
558 dist:
559 $(srcdir)/update-subdirs ${srcdir}/lisp
560 cd ${srcdir}; make-dist
562 .PHONY: info dvi dist check
563 force-info:
564 info: force-info
565 (cd ${srcdir}/man; $(MAKE) $(MFLAGS) info)
566 dvi:
567 (cd man; $(MAKE) $(MFLAGS) dvi)