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