* Makefile.in (uninstall): Don't remove the lisp and etc
[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|^\(LD_SWITCH_X_SITE *=\).*$$|\1'"${LD_SWITCH_X_SITE}"'|' \
286 -e '/^# DIST: /d') > src/Makefile.tmp
287 @${srcdir}/move-if-change src/Makefile.tmp src/Makefile
288 chmod -w src/Makefile
289
290 oldXMenu/Makefile: ${srcdir}/oldXMenu/Makefile.in Makefile
291 rm -f oldXMenu/Makefile.tmp
292 @echo "Producing \`oldXMenu/Makefile' from \`${srcdir}/oldXMenu/Makefile.in'."
293 @(echo "# This file is generated from \`${srcdir}/oldXMenu/Makefile.in'." ; \
294 echo "# If you are thinking about editing it, you should seriously consider" ; \
295 echo "# running \`make oldXMenu/Makefile' at the top of the" ; \
296 echo "# Emacs build tree instead, or editing" ; \
297 echo "# \`${srcdir}/oldXMenu/Makefile.in' itself." ; \
298 sed < ${srcdir}/oldXMenu/Makefile.in \
299 -e 's|^\(srcdir *=\).*$$|\1'"${srcdir}"'/oldXMenu|' \
300 -e 's|^\(VPATH *=\).*$$|\1'"${srcdir}"'/oldXMenu|' \
301 -e 's|^\(C_SWITCH_X_SITE *=\).*$$|\1'"${C_SWITCH_X_SITE}"'|' \
302 -e 's|^CC *=.*$$|CC='"${CC}"'|' \
303 -e 's|^DEFS *=.*$$|DEFS='"${DEFS}"'|' \
304 -e '/^# DIST: /d') > oldXMenu/Makefile.tmp
305 @${srcdir}/move-if-change oldXMenu/Makefile.tmp oldXMenu/Makefile
306 chmod -w oldXMenu/Makefile
307
308 Makefile:
309 ./config.status
310
311 # ==================== Installation ====================
312
313 ## If we let lib-src do its own installation, that means we
314 ## don't have to duplicate the list of utilities to install in
315 ## this Makefile as well.
316
317 ## On AIX, use tar xBf.
318 ## On Xenix, use tar xpf.
319
320 ## We delete each directory in ${COPYDESTS} before we copy into it;
321 ## that way, we can reinstall over directories that have been put in
322 ## place with their files read-only (perhaps because they are checked
323 ## into RCS). In order to make this safe, we make sure that the
324 ## source exists and is distinct from the destination.
325 install: all do-install
326
327 ### Note that we copy the DOC-* files from the build etc directory
328 ### as well as lots of things from ${srcdir}/etc.
329 do-install: mkdir
330 (cd lib-src; \
331 $(MAKE) install ${MFLAGS} prefix=${prefix} \
332 exec_prefix=${exec_prefix} bindir=${bindir} libdir=${libdir} \
333 archlibdir=${archlibdir})
334 -set ${COPYDESTS} ; \
335 for dir in ${COPYDIR} ; do \
336 if [ `(cd $$1 && pwd)` != `(cd $${dir} && pwd)` ] ; then \
337 rm -rf $$1 ; \
338 fi ; \
339 shift ; \
340 done
341 -set ${COPYDESTS} ; \
342 mkdir ${COPYDESTS} ; \
343 for dir in ${COPYDIR} ; do \
344 dest=$$1 ; shift ; \
345 [ -d $${dir} ] \
346 && [ `(cd $${dir} && /bin/pwd)` != `(cd $${dest} && /bin/pwd)` ] \
347 && (echo "Copying $${dir}..." ; \
348 (cd $${dir}; tar -cf - . )|(cd $${dest};umask 0; tar -xvf - ); \
349 for subdir in `find $${dest} -type d ! -name RCS -print` ; do \
350 rm -rf $${subdir}/RCS ; \
351 rm -rf $${subdir}/CVS ; \
352 rm -f $${subdir}/\#* ; \
353 rm -f $${subdir}/*~ ; \
354 done) ; \
355 done
356 if [ `(cd ./etc; /bin/pwd)` != `(cd ${srcdir}/etc; /bin/pwd)` ]; \
357 then \
358 echo "Copying etc/DOC* ..." ; \
359 (cd etc; tar -cf - DOC*)|(cd ${etcdir}; umask 0; tar -xvf - ); \
360 else true; fi
361 if [ `(cd ${srcdir}/info && /bin/pwd)` != `(cd ${infodir} && /bin/pwd)` ]; \
362 then (cd ${srcdir}/info ; \
363 if [ ! -f ${infodir}/dir ] && [ -f dir ]; then \
364 ${INSTALL_DATA} dir ${infodir}/dir ; \
365 fi ; \
366 for f in cl* emacs* forms* info* vip* ; do \
367 ${INSTALL_DATA} $$f ${infodir}/$$f ; \
368 done); \
369 else true; fi
370 cd ${srcdir}/etc; for page in emacs etags ctags ; do \
371 ${INSTALL_DATA} $${page}.1 ${mandir}/$${page}${manext} ; \
372 done
373 ${INSTALL_PROGRAM} src/emacs ${bindir}/emacs-${version}
374 chmod 1755 ${bindir}/emacs-${version}
375 rm -f ${bindir}/emacs
376 ln ${bindir}/emacs-${version} ${bindir}/emacs
377
378 ### Build all the directories we're going to install Emacs in. Since
379 ### we may be creating several layers of directories (for example,
380 ### /usr/local/lib/emacs/19.0/mips-dec-ultrix4.2), we use make-path
381 ### instead of mkdir. Not all systems' mkdirs have the `-p' flag.
382 mkdir: FRC.mkdir
383 ./lib-src/make-path ${COPYDESTS} ${lockdir} ${infodir} ${mandir} \
384 ${bindir} ${datadir} ${libdir} \
385 `echo ${locallisppath} | sed 's/:/ /'`
386 chmod 777 ${COPYDESTS} ${lockdir}
387
388 ### Delete all the installed files that the `install' target would
389 ### create (but not the noninstalled files such as `make all' would
390 ### create).
391 ###
392 ### Don't delete the lisp and etc directories if they're in the source tree.
393 uninstall:
394 (cd lib-src; \
395 $(MAKE) ${MFLAGS} uninstall \
396 prefix=${prefix} exec_prefix=${exec_prefix} \
397 bindir=${bindir} libdir=${libdir} archlibdir=${archlibdir})
398 for dir in ${lispdir} ${etcdir} ; do \
399 case `(cd $${dir} ; pwd)` in \
400 `(cd ${srcdir} ; pwd)`* ) ;; \
401 * ) rm -rf $${dir} ;; \
402 esac ; \
403 case $${dir} in \
404 ${datadir}/emacs/${version}/* ) \
405 rm -rf ${datadir}/emacs/${version} \
406 ;; \
407 esac ; \
408 done
409 (cd ${infodir}; rm -f cl* emacs* forms* info* vip*)
410 (cd ${mandir}; rm -f emacs.1 etags.1 ctags.1)
411 (cd ${bindir}; rm -f emacs-${version} emacs)
412
413
414 ### Some makes seem to remember that they've built something called FRC,
415 ### so you can only use a given FRC once per makefile.
416 FRC FRC.src.paths.h FRC.src FRC.lib-src FRC.mkdir:
417 FRC.mostlyclean FRC.clean FRC.distclean FRC.realclean:
418
419 # ==================== Cleaning up and miscellanea ====================
420
421 ### `mostlyclean'
422 ### Like `clean', but may refrain from deleting a few files that people
423 ### normally don't want to recompile. For example, the `mostlyclean'
424 ### target for GCC does not delete `libgcc.a', because recompiling it
425 ### is rarely necessary and takes a lot of time.
426 mostlyclean: FRC.mostlyclean
427 (cd src; make ${MFLAGS} mostlyclean)
428 (cd oldXMenu; make ${MFLAGS} mostlyclean)
429 (cd lib-src; make ${MFLAGS} mostlyclean)
430 (cd man; make ${MFLAGS} mostlyclean)
431
432 ### `clean'
433 ### Delete all files from the current directory that are normally
434 ### created by building the program. Don't delete the files that
435 ### record the configuration. Also preserve files that could be made
436 ### by building, but normally aren't because the distribution comes
437 ### with them.
438 ###
439 ### Delete `.dvi' files here if they are not part of the distribution.
440 clean: FRC.clean
441 (cd src; make ${MFLAGS} clean)
442 (cd oldXMenu; make ${MFLAGS} clean)
443 (cd lib-src; make ${MFLAGS} clean)
444 (cd man; make ${MFLAGS} clean)
445
446 ### `distclean'
447 ### Delete all files from the current directory that are created by
448 ### configuring or building the program. If you have unpacked the
449 ### source and built the program without creating any other files,
450 ### `make distclean' should leave only the files that were in the
451 ### distribution.
452 top_distclean=\
453 rm -f config.status build-install ; \
454 rm -f Makefile ${SUBDIR_MAKEFILES} ; \
455 (cd lock ; rm *)
456 distclean: FRC.distclean
457 (cd src; make ${MFLAGS} distclean)
458 (cd oldXMenu; make ${MFLAGS} distclean)
459 (cd lib-src; make ${MFLAGS} distclean)
460 (cd man; make ${MFLAGS} distclean)
461 ${top_distclean}
462
463
464 ### `realclean'
465 ### Delete everything from the current directory that can be
466 ### reconstructed with this Makefile. This typically includes
467 ### everything deleted by distclean, plus more: C source files
468 ### produced by Bison, tags tables, info files, and so on.
469 ###
470 ### One exception, however: `make realclean' should not delete
471 ### `configure' even if `configure' can be remade using a rule in the
472 ### Makefile. More generally, `make realclean' should not delete
473 ### anything that needs to exist in order to run `configure' and then
474 ### begin to build the program.
475 realclean: FRC.realclean
476 (cd src; make ${MFLAGS} realclean)
477 (cd oldXMenu; make ${MFLAGS} realclean)
478 (cd lib-src; make ${MFLAGS} realclean)
479 (cd man; make ${MFLAGS} realclean)
480 ${top_distclean}
481
482 ### This doesn't actually appear in the coding standards, but Karl
483 ### says GCC supports it, and that's where the configuration part of
484 ### the coding standards seem to come from. It's like distclean, but
485 ### it deletes backup and autosave files too.
486 extraclean:
487 for i in ${SUBDIR}; do (cd $$i; $(MAKE) ${MFLAGS} extraclean); done
488 -(cd lock; rm *)
489 -rm config.status config-tmp-*
490 -rm -f *~ \#*
491
492 ### Unlocking and relocking. The idea of these productions is to reduce
493 ### hassles when installing an incremental tar of Emacs. Do `make unlock'
494 ### before unlocking the file to take the write locks off all sources so
495 ### that tar xvof will overwrite them without fuss. Then do `make relock'
496 ### afterward so that VC mode will know which files should be checked in
497 ### if you want to mung them.
498 ###
499 ### Note: it's no disaster if these productions miss a file or two; tar
500 ### and VC will swiftly let you know if this happens, and it is easily
501 ### corrected.
502 SOURCES = ChangeLog GETTING.GNU.SOFTWARE INSTALL Makefile.in PROBLEMS \
503 README build-install.in configure make-dist move-if-change
504
505 unlock:
506 chmod u+w $(SOURCES) cpp/*
507 -(cd elisp; chmod u+w Makefile README *.texi)
508 (cd etc; make unlock)
509 (cd lib-src; make unlock)
510 (cd lisp; make unlock)
511 (cd lisp/term; chmod u+w README *.el)
512 (cd man; chmod u+w *texi* ChangeLog split-man)
513 (cd oldXMenu; chmod u+w *.[ch] Makefile README)
514 (cd src; make unlock)
515
516 relock:
517 chmod u-w $(SOURCES) cpp/*
518 -(cd elisp; chmod u-w Makefile README *.texi)
519 (cd etc; make relock)
520 (cd lib-src; make relock)
521 (cd lisp; make relock)
522 (cd lisp/term; chmod u+w README *.el)
523 (cd man; chmod u+w *texi* ChangeLog split-man)
524 (cd oldXMenu; chmod u+w *.[ch] Makefile README)
525 (cd src; make relock)
526
527 TAGS tags: lib-src
528 (cd ${srcdir}/src; \
529 ../lib-src/etags *.[ch] ../lisp/*.el ../lisp/term/*.el)
530
531 check:
532 @echo "We don't have any tests for GNU Emacs yet."
533
534 dist:
535 cd ${srcdir}; make-dist
536
537 info:
538 (cd ${srcdir}/man; make ${MFLAGS} info)
539 dvi:
540 (cd ${srcdir}/man; make ${MFLAGS} dvi)