(timezone-fix-time, timezone-zone-to-minute): Simplify with `abs'
[bpt/emacs.git] / Makefile.in
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.
4
5 # make all to compile and build Emacs.
6 # make install to install it.
7 # make TAGS to update tags tables.
8 #
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.
15 #
16 # Delete `.dvi' files here if they are not part of the distribution.
17 #
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.
24 #
25 # make realclean
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.
30 #
31 # make extraclean
32 # Still more severe - delete backup and autosave files, too.
33
34 SHELL = /bin/sh
35 MAKE = make # BSD doesn't have it as a default.
36
37 # ==================== Things `configure' Might Edit ====================
38
39 CC=@CC@
40 CPP=@CPP@
41 C_SWITCH_SYSTEM=@c_switch_system@
42 ALLOCA=@ALLOCA@
43 LN_S=@LN_S@
44 CFLAGS=@CFLAGS@
45 C_SWITCH_X_SITE=@C_SWITCH_X_SITE@
46 LD_SWITCH_X_SITE=@LD_SWITCH_X_SITE@
47 YACC=@YACC@
48
49 ### These help us choose version- and architecture-specific directories
50 ### to install files in.
51
52 ### This should be the number of the Emacs version we're building,
53 ### like `18.59' or `19.0'.
54 version=@version@
55
56 ### This should be the name of the configuration we're building Emacs
57 ### for, like `mips-dec-ultrix' or `sparc-sun-sunos'.
58 configuration=@configuration@
59
60 ### Libraries which should be edited into lib-src/Makefile.
61 libsrc_libs=@libsrc_libs@
62
63 # ==================== Where To Install Things ====================
64
65 # The default location for installation. Everything is placed in
66 # subdirectories of this directory. The default values for many of
67 # the variables below are expressed in terms of this one, so you may
68 # not need to change them. This defaults to /usr/local.
69 prefix=@prefix@
70
71 # Like `prefix', but used for architecture-specific files.
72 exec_prefix=@exec_prefix@
73
74 # Where to install Emacs and other binaries that people will want to
75 # run directly (like etags).
76 bindir=${exec_prefix}/bin
77
78 # Where to install architecture-independent data files. ${lispdir}
79 # and ${etcdir} are subdirectories of this.
80 datadir=${prefix}/lib
81
82 # Where to install and expect the files that Emacs modifies as it
83 # runs. These files are all architecture-independent. Right now, the
84 # only such data is the locking directory; ${lockdir} is a
85 # subdirectory of this.
86 statedir=${prefix}/lib
87
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 libdir=${exec_prefix}/lib
92
93 # Where to install Emacs's man pages, and what extension they should have.
94 mandir=${prefix}/man/man1
95 manext=.1
96
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=${prefix}/info
102
103 # Where to find the source code. The source code for Emacs's C kernel is
104 # expected to be in ${srcdir}/src, and the source code for Emacs's
105 # utility programs is expected to be in ${srcdir}/lib-src. This is
106 # set by the configure script's `--srcdir' option.
107 srcdir=@srcdir@
108
109 # ==================== Emacs-specific directories ====================
110
111 # These variables hold the values Emacs will actually use. They are
112 # based on the values of the standard Make variables above.
113
114 @inst_paths@# Where to install the lisp files distributed with
115 @inst_paths@# Emacs. This includes the Emacs version, so that the
116 @inst_paths@# lisp files for different versions of Emacs will install
117 @inst_paths@# themselves in separate directories.
118 @inst_paths@lispdir=${datadir}/emacs/${version}/lisp
119
120 @inst_paths@# Directories Emacs should search for lisp files specific
121 @inst_paths@# to this site (i.e. customizations), before consulting
122 @inst_paths@# ${lispdir}. This should be a colon-separated list of
123 @inst_paths@# directories.
124 @inst_paths@locallisppath=${datadir}/emacs/site-lisp
125
126 # Where Emacs will search to find its lisp files. Before
127 # changing this, check to see if your purpose wouldn't
128 # better be served by changing locallisppath. This
129 # should be a colon-separated list of directories.
130 lisppath=${locallisppath}:${lispdir}
131
132 # Where Emacs will search for its lisp files while
133 # building. This is only used during the process of
134 # compiling Emacs, to help Emacs find its lisp files
135 # before they've been installed in their final location.
136 # It's usually identical to lisppath, except that the
137 # entry for the directory containing the installed lisp
138 # files has been replaced with ../lisp. This should be a
139 # colon-separated list of directories.
140 buildlisppath=${srcdir}/lisp
141
142 @inst_paths@# Where to install the other architecture-independent
143 @inst_paths@# data files distributed with Emacs (like the tutorial,
144 @inst_paths@# the cookie recipes and the Zippy database). This path
145 @inst_paths@# usually contains the Emacs version number, so the data
146 @inst_paths@# files for multiple versions of Emacs may be installed
147 @inst_paths@# at once.
148 @inst_paths@etcdir=${datadir}/emacs/${version}/etc
149
150 @inst_paths@# Where to create and expect the locking directory, where
151 @inst_paths@# the Emacs locking code keeps track of which files are
152 @inst_paths@# currently being edited.
153 @inst_paths@lockdir=${statedir}/emacs/lock
154
155 @inst_paths@# Where to put executables to be run by Emacs rather than
156 @inst_paths@# the user. This path usually includes the Emacs version
157 @inst_paths@# and configuration name, so that multiple configurations
158 @inst_paths@# for multiple versions of Emacs may be installed at
159 @inst_paths@# once.
160 @inst_paths@archlibdir=${libdir}/emacs/${version}/${configuration}
161
162 # ====================== Developer's configuration =======================
163
164 # The following assignments make sense if you're running Emacs on a single
165 # machine, one version at a time, and you want changes to the lisp and etc
166 # directories in the source tree to show up immediately in your working
167 # environment. It saves a great deal of disk space by not duplicating the
168 # lisp and etc directories.
169
170 @rip_paths@lispdir=${srcdir}/lisp
171 @rip_paths@externallispdir=${srcdir}/externallisp
172 @rip_paths@locallisppath=${srcdir}/site-lisp:${datadir}/emacs/site-lisp
173 @rip_paths@etcdir=${srcdir}/etc
174 @rip_paths@lockdir=${srcdir}/lock
175 @rip_paths@archlibdir=${srcdir}/lib-src
176 @rip_paths@infodir=${srcdir}/info
177
178 # ==================== Utility Programs for the Build ====================
179
180 # Allow the user to specify the install program.
181 INSTALL = @INSTALL@
182 INSTALL_PROGRAM = @INSTALL_PROGRAM@
183 INSTALL_DATA = @INSTALL_DATA@
184
185 # ============================= Targets ==============================
186
187 # Flags passed down to subdirectory makefiles.
188 MFLAGS =
189
190 # Subdirectories to make recursively. `lisp' is not included
191 # because the compiled lisp files are part of the distribution
192 # and you cannot remake them without installing Emacs first.
193 SUBDIR = lib-src src
194
195 # The makefiles of the directories in $SUBDIR.
196 SUBDIR_MAKEFILES = lib-src/Makefile src/Makefile oldXMenu/Makefile
197
198 # Subdirectories to install, and where they'll go.
199 # lib-src's makefile knows how to install it, so we don't do that here.
200 # When installing the info files, we need to do special things to
201 # avoid nuking an existing dir file, so we don't do that here;
202 # instead, we have written out explicit code in the `install' targets.
203 COPYDIR = ${srcdir}/etc ${srcdir}/lisp
204 COPYDESTS = ${etcdir} ${lispdir}
205
206 all: src/paths.h ${SUBDIR}
207
208 removenullpaths=sed -e 's/^://' -e 's/:$$//' -e 's/::/:/'
209
210 # We force the rebuilding of src/paths.h because the user might give
211 # make different values for the various directories. Since we use
212 # move-if-change, src/paths.h only actually changes if the user did
213 # something notable, so the only unnecessary work we do is in building
214 # src/paths.h.tmp, which isn't much.
215 # Note that sed is not in /bin on 386bsd.
216 src/paths.h: Makefile ${srcdir}/src/paths.h.in FRC.src.paths.h
217 @echo "Producing \`src/paths.h' from \`src/paths.h.in'."
218 @(lisppath=`echo ${lisppath} | ${removenullpaths}` ; \
219 buildlisppath=`echo ${buildlisppath} | ${removenullpaths}` ; \
220 sed < ${srcdir}/src/paths.h.in > src/paths.h.tmp \
221 -e 's;\(#.*PATH_LOADSEARCH\).*$$;\1 "'$${lisppath}'";' \
222 -e 's;\(#.*PATH_DUMPLOADSEARCH\).*$$;\1 "'$${buildlisppath}'";' \
223 -e 's;\(#.*PATH_EXEC\).*$$;\1 "${archlibdir}";' \
224 -e 's;\(#.*PATH_INFO\).*$$;\1 "${infodir}";' \
225 -e 's;\(#.*PATH_DATA\).*$$;\1 "${etcdir}";' \
226 -e 's;\(#.*PATH_LOCK\).*$$;\1 "${lockdir}/";')
227 @${srcdir}/move-if-change src/paths.h.tmp src/paths.h
228
229 src: lib-src FRC.src
230 lib-src: FRC.lib-src
231
232 .RECURSIVE: ${SUBDIR}
233
234 ${SUBDIR}: ${SUBDIR_MAKEFILES} FRC
235 cd $@; $(MAKE) all ${MFLAGS} \
236 CC='${CC}' CFLAGS='${CFLAGS}' MAKE='${MAKE}' \
237 prefix='${prefix}' srcdir='${srcdir}/$@' libdir='${libdir}'
238
239 ## We build the makefiles for the subdirectories here so that we can
240 ## edit the values for the path variables into them. This means that
241 ## when the user has built them from this makefile once, they will use
242 ## the right default values for the path variables.
243 lib-src/Makefile: ${srcdir}/lib-src/Makefile.in Makefile
244 rm -f lib-src/Makefile.tmp
245 @echo "Producing \`lib-src/Makefile' from \`${srcdir}/lib-src/Makefile.in'."
246 @(echo "# This file is generated from \`${srcdir}/lib-src/Makefile.in'." ; \
247 echo "# If you are thinking about editing it, you should seriously consider" ; \
248 echo "# running \`make lib-src/Makefile' at the top of the" ; \
249 echo "# Emacs build tree instead, or editing" ; \
250 echo "# \`${srcdir}/lib-src/Makefile.in' itself." ; \
251 sed < ${srcdir}/lib-src/Makefile.in \
252 -e 's|^\(version *=\).*$$|\1'"${version}"'|' \
253 -e 's|^\(configname *=\).*$$|\1'"${configuration}"'|' \
254 -e 's|^\(prefix *=\).*$$|\1'"${prefix}"'|' \
255 -e 's|^\(exec_prefix *=\).*$$|\1'"${exec_prefix}"'|' \
256 -e 's|^\(libdir *=\).*$$|\1'"${libdir}"'|' \
257 -e 's|^\(srcdir *=\).*$$|\1'"${srcdir}"'/lib-src|' \
258 -e 's|^\(VPATH *=\).*$$|\1'"${srcdir}"'/lib-src|' \
259 -e 's|^\(archlibdir *=\).*$$|\1'"${archlibdir}"'|' \
260 -e 's|^\(ALLOCA *=\).*$$|\1'"${ALLOCA}"'|' \
261 -e 's|^\(YACC *=\).*$$|\1'"${YACC}"'|' \
262 -e 's|^CC *=.*$$|CC='"${CC}"'|' \
263 -e 's|^CFLAGS *=.*$$|CFLAGS='"${CFLAGS}"'|' \
264 -e 's|^C_SWITCH_SYSTEM *=.*$$|C_SWITCH_SYSTEM='"${C_SWITCH_SYSTEM}"'|' \
265 -e 's|^LOADLIBES *=.*$$|LOADLIBES='"${libsrc_libs}"'|' \
266 -e '/^# DIST: /d') > lib-src/Makefile.tmp
267 @${srcdir}/move-if-change lib-src/Makefile.tmp lib-src/Makefile
268 chmod -w lib-src/Makefile
269
270 src/Makefile: ${srcdir}/src/Makefile.in Makefile
271 rm -f src/Makefile.tmp
272 @echo "Producing \`src/Makefile' from \`${srcdir}/src/Makefile.in'."
273 @(echo "# This file is generated from \`${srcdir}/src/Makefile.in'." ; \
274 echo "# If you are thinking about editing it, you should seriously consider" ; \
275 echo "# running \`make src/Makefile' at the top of the" ; \
276 echo "# Emacs build tree instead, or editing" ; \
277 echo "# \`${srcdir}/src/Makefile.in' itself." ; \
278 sed < ${srcdir}/src/Makefile.in \
279 -e 's|^\(srcdir *=\).*$$|\1${srcdir}/src|' \
280 -e 's|^\(VPATH *=\).*$$|\1${srcdir}/src|' \
281 -e 's|^CC *=.*$$|CC=${CC}|' \
282 -e 's|^CPP *=.*$$|CPP=${CPP}|' \
283 -e 's|^LN_S *=.*$$|LN_S=${LN_S}|' \
284 -e 's|^CFLAGS *=.*$$|CFLAGS=${CFLAGS}|' \
285 -e 's|^\(C_SWITCH_SYSTEM *=\).*$$|\1'"${C_SWITCH_SYSTEM}"'|' \
286 -e 's|^\(LD_SWITCH_X_SITE *=\).*$$|\1${LD_SWITCH_X_SITE}|' \
287 -e '/^# DIST: /d') > src/Makefile.tmp
288 @${srcdir}/move-if-change src/Makefile.tmp src/Makefile
289 chmod -w src/Makefile
290
291 oldXMenu/Makefile: ${srcdir}/oldXMenu/Makefile.in Makefile
292 rm -f oldXMenu/Makefile.tmp
293 @echo "Producing \`oldXMenu/Makefile' from \`${srcdir}/oldXMenu/Makefile.in'."
294 @(echo "# This file is generated from \`${srcdir}/oldXMenu/Makefile.in'." ; \
295 echo "# If you are thinking about editing it, you should seriously consider" ; \
296 echo "# running \`make oldXMenu/Makefile' at the top of the" ; \
297 echo "# Emacs build tree instead, or editing" ; \
298 echo "# \`${srcdir}/oldXMenu/Makefile.in' itself." ; \
299 sed < ${srcdir}/oldXMenu/Makefile.in \
300 -e 's|^\(srcdir *=\).*$$|\1'"${srcdir}"'/oldXMenu|' \
301 -e 's|^\(VPATH *=\).*$$|\1'"${srcdir}"'/oldXMenu|' \
302 -e 's|^\(C_SWITCH_X_SITE *=\).*$$|\1'"${C_SWITCH_X_SITE}"'|' \
303 -e 's|^CC *=.*$$|CC='"${CC}"'|' \
304 -e 's|^DEFS *=.*$$|DEFS='"${DEFS}"'|' \
305 -e '/^# DIST: /d') > oldXMenu/Makefile.tmp
306 @${srcdir}/move-if-change oldXMenu/Makefile.tmp oldXMenu/Makefile
307 chmod -w oldXMenu/Makefile
308
309 Makefile:
310 ./config.status
311
312 # ==================== Installation ====================
313
314 ## If we let lib-src do its own installation, that means we
315 ## don't have to duplicate the list of utilities to install in
316 ## this Makefile as well.
317
318 ## On AIX, use tar xBf.
319 ## On Xenix, use tar xpf.
320
321 ## We delete each directory in ${COPYDESTS} before we copy into it;
322 ## that way, we can reinstall over directories that have been put in
323 ## place with their files read-only (perhaps because they are checked
324 ## into RCS). In order to make this safe, we make sure that the
325 ## source exists and is distinct from the destination.
326 install: all do-install
327
328 ### Note that we copy the DOC-* files from the build etc directory
329 ### as well as lots of things from ${srcdir}/etc.
330 do-install: mkdir
331 (cd lib-src; \
332 $(MAKE) install ${MFLAGS} prefix=${prefix} \
333 exec_prefix=${exec_prefix} bindir=${bindir} libdir=${libdir} \
334 archlibdir=${archlibdir})
335 -set ${COPYDESTS} ; \
336 for dir in ${COPYDIR} ; do \
337 if [ `(cd $$1 && pwd)` != `(cd $${dir} && pwd)` ] ; then \
338 rm -rf $$1 ; \
339 fi ; \
340 shift ; \
341 done
342 -set ${COPYDESTS} ; \
343 mkdir ${COPYDESTS} ; \
344 for dir in ${COPYDIR} ; do \
345 dest=$$1 ; shift ; \
346 [ -d $${dir} ] \
347 && [ `(cd $${dir} && /bin/pwd)` != `(cd $${dest} && /bin/pwd)` ] \
348 && (echo "Copying $${dir}..." ; \
349 (cd $${dir}; tar -cf - . )|(cd $${dest};umask 0; tar -xvf - ); \
350 for subdir in `find $${dest} -type d ! -name RCS -print` ; do \
351 rm -rf $${subdir}/RCS ; \
352 rm -rf $${subdir}/CVS ; \
353 rm -f $${subdir}/\#* ; \
354 rm -f $${subdir}/*~ ; \
355 done) ; \
356 done
357 if [ `(cd ./etc; /bin/pwd)` != `(cd ${srcdir}/etc; /bin/pwd)` ]; \
358 then \
359 echo "Copying etc/DOC* ..." ; \
360 (cd etc; tar -cf - DOC*)|(cd ${etcdir}; umask 0; tar -xvf - ); \
361 else true; fi
362 if [ `(cd ${srcdir}/info && /bin/pwd)` != `(cd ${infodir} && /bin/pwd)` ]; \
363 then (cd ${srcdir}/info ; \
364 if [ ! -f ${infodir}/dir ] && [ -f dir ]; then \
365 ${INSTALL_DATA} dir ${infodir}/dir ; \
366 fi ; \
367 for f in cl* emacs* forms* info* vip* ; do \
368 ${INSTALL_DATA} $$f ${infodir}/$$f ; \
369 done); \
370 else true; fi
371 cd ${srcdir}/etc; for page in emacs etags ctags ; do \
372 ${INSTALL_DATA} $${page}.1 ${mandir}/$${page}${manext} ; \
373 done
374 ${INSTALL_PROGRAM} src/emacs ${bindir}/emacs-${version}
375 chmod 1755 ${bindir}/emacs-${version}
376 rm -f ${bindir}/emacs
377 ln ${bindir}/emacs-${version} ${bindir}/emacs
378
379 ### Build all the directories we're going to install Emacs in. Since
380 ### we may be creating several layers of directories (for example,
381 ### /usr/local/lib/emacs/19.0/mips-dec-ultrix4.2), we use make-path
382 ### instead of mkdir. Not all systems' mkdirs have the `-p' flag.
383 mkdir: FRC.mkdir
384 ./lib-src/make-path ${COPYDESTS} ${lockdir} ${infodir} ${mandir} \
385 ${bindir} ${datadir} ${libdir} \
386 `echo ${locallisppath} | sed 's/:/ /'`
387 chmod 777 ${COPYDESTS} ${lockdir}
388
389 ### Delete all the installed files that the `install' target would
390 ### create (but not the noninstalled files such as `make all' would
391 ### create).
392 ###
393 ### Don't delete the lisp and etc directories if they're in the source tree.
394 uninstall:
395 (cd lib-src; \
396 $(MAKE) ${MFLAGS} uninstall \
397 prefix=${prefix} exec_prefix=${exec_prefix} \
398 bindir=${bindir} libdir=${libdir} archlibdir=${archlibdir})
399 for dir in ${lispdir} ${etcdir} ; do \
400 case `(cd $${dir} ; pwd)` in \
401 `(cd ${srcdir} ; pwd)`* ) ;; \
402 * ) rm -rf $${dir} ;; \
403 esac ; \
404 case $${dir} in \
405 ${datadir}/emacs/${version}/* ) \
406 rm -rf ${datadir}/emacs/${version} \
407 ;; \
408 esac ; \
409 done
410 (cd ${infodir}; rm -f cl* emacs* forms* info* vip*)
411 (cd ${mandir}; rm -f emacs.1 etags.1 ctags.1)
412 (cd ${bindir}; rm -f emacs-${version} emacs)
413
414
415 ### Some makes seem to remember that they've built something called FRC,
416 ### so you can only use a given FRC once per makefile.
417 FRC FRC.src.paths.h FRC.src FRC.lib-src FRC.mkdir:
418 FRC.mostlyclean FRC.clean FRC.distclean FRC.realclean:
419
420 # ==================== Cleaning up and miscellanea ====================
421
422 ### `mostlyclean'
423 ### Like `clean', but may refrain from deleting a few files that people
424 ### normally don't want to recompile. For example, the `mostlyclean'
425 ### target for GCC does not delete `libgcc.a', because recompiling it
426 ### is rarely necessary and takes a lot of time.
427 mostlyclean: FRC.mostlyclean
428 (cd src; make ${MFLAGS} mostlyclean)
429 (cd oldXMenu; make ${MFLAGS} mostlyclean)
430 (cd lib-src; make ${MFLAGS} mostlyclean)
431 (cd man; make ${MFLAGS} mostlyclean)
432
433 ### `clean'
434 ### Delete all files from the current directory that are normally
435 ### created by building the program. Don't delete the files that
436 ### record the configuration. Also preserve files that could be made
437 ### by building, but normally aren't because the distribution comes
438 ### with them.
439 ###
440 ### Delete `.dvi' files here if they are not part of the distribution.
441 clean: FRC.clean
442 (cd src; make ${MFLAGS} clean)
443 (cd oldXMenu; make ${MFLAGS} clean)
444 (cd lib-src; make ${MFLAGS} clean)
445 (cd man; make ${MFLAGS} clean)
446
447 ### `distclean'
448 ### Delete all files from the current directory that are created by
449 ### configuring or building the program. If you have unpacked the
450 ### source and built the program without creating any other files,
451 ### `make distclean' should leave only the files that were in the
452 ### distribution.
453 top_distclean=\
454 rm -f config.status build-install ; \
455 rm -f Makefile ${SUBDIR_MAKEFILES} ; \
456 (cd lock ; rm -f *)
457 distclean: FRC.distclean
458 (cd src; make ${MFLAGS} distclean)
459 (cd oldXMenu; make ${MFLAGS} distclean)
460 (cd lib-src; make ${MFLAGS} distclean)
461 (cd man; make ${MFLAGS} distclean)
462 ${top_distclean}
463
464
465 ### `realclean'
466 ### Delete everything from the current directory that can be
467 ### reconstructed with this Makefile. This typically includes
468 ### everything deleted by distclean, plus more: C source files
469 ### produced by Bison, tags tables, info files, and so on.
470 ###
471 ### One exception, however: `make realclean' should not delete
472 ### `configure' even if `configure' can be remade using a rule in the
473 ### Makefile. More generally, `make realclean' should not delete
474 ### anything that needs to exist in order to run `configure' and then
475 ### begin to build the program.
476 realclean: FRC.realclean
477 (cd src; make ${MFLAGS} realclean)
478 (cd oldXMenu; make ${MFLAGS} realclean)
479 (cd lib-src; make ${MFLAGS} realclean)
480 (cd man; make ${MFLAGS} realclean)
481 ${top_distclean}
482
483 ### This doesn't actually appear in the coding standards, but Karl
484 ### says GCC supports it, and that's where the configuration part of
485 ### the coding standards seem to come from. It's like distclean, but
486 ### it deletes backup and autosave files too.
487 extraclean:
488 for i in ${SUBDIR}; do (cd $$i; $(MAKE) ${MFLAGS} extraclean); done
489 -(cd lock; rm *)
490 -rm config.status config-tmp-*
491 -rm -f *~ \#*
492
493 ### Unlocking and relocking. The idea of these productions is to reduce
494 ### hassles when installing an incremental tar of Emacs. Do `make unlock'
495 ### before unlocking the file to take the write locks off all sources so
496 ### that tar xvof will overwrite them without fuss. Then do `make relock'
497 ### afterward so that VC mode will know which files should be checked in
498 ### if you want to mung them.
499 ###
500 ### Note: it's no disaster if these productions miss a file or two; tar
501 ### and VC will swiftly let you know if this happens, and it is easily
502 ### corrected.
503 SOURCES = ChangeLog GETTING.GNU.SOFTWARE INSTALL Makefile.in PROBLEMS \
504 README build-install.in configure make-dist move-if-change
505
506 unlock:
507 chmod u+w $(SOURCES) cpp/*
508 -(cd elisp; chmod u+w Makefile README *.texi)
509 (cd etc; make unlock)
510 (cd lib-src; make unlock)
511 (cd lisp; make unlock)
512 (cd lisp/term; chmod u+w README *.el)
513 (cd man; chmod u+w *texi* ChangeLog split-man)
514 (cd oldXMenu; chmod u+w *.[ch] Makefile README)
515 (cd src; make unlock)
516
517 relock:
518 chmod u-w $(SOURCES) cpp/*
519 -(cd elisp; chmod u-w Makefile README *.texi)
520 (cd etc; make relock)
521 (cd lib-src; make relock)
522 (cd lisp; make relock)
523 (cd lisp/term; chmod u+w README *.el)
524 (cd man; chmod u+w *texi* ChangeLog split-man)
525 (cd oldXMenu; chmod u+w *.[ch] Makefile README)
526 (cd src; make relock)
527
528 TAGS tags: lib-src
529 (cd ${srcdir}/src; \
530 ../lib-src/etags *.[ch] ../lisp/*.el ../lisp/term/*.el)
531
532 check:
533 @echo "We don't have any tests for GNU Emacs yet."
534
535 dist:
536 cd ${srcdir}; make-dist
537
538 info:
539 (cd ${srcdir}/man; make ${MFLAGS} info)
540 dvi:
541 (cd ${srcdir}/man; make ${MFLAGS} dvi)