Mercurial > emacs
comparison Makefile.in @ 2812:cea361c342f4
Install ${srcdir} changes from DJM.
* Makefile.in (SUBDIR_MAKEFILES): Add oldXMenu/Makefile to this
list.
(COPYDIR, COPYDESTS): Install files from both the etc directory in
the source tree and the etc directory in the object tree.
(${SUBDIR}): Pass the prefix variable down to submakes.
(everywhere): Use `sed', not `/bin/sed'. Not all systems have sed
in /bin.
(lib-src/Makefile, src/Makefile, oldXMenu/Makefile): Edit in
values for srcdir and VPATH.
(install): Add `v' flag to tar command. Make sure that `dir'
exists in ${srcdir}/info before copying it. Remember that the man
pages come from the source tree, not the object tree.
* configure.in: Remove remarks saying that the --srcdir option
doesn't work.
Create the etc directory in the object tree.
Recognize configuration names of the form *-sun-solaris*.
Recognize sunos5 and solaris as operating system names.
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Sat, 15 May 1993 22:57:27 +0000 |
parents | 8d00a436bfcc |
children | d28c54ba888e |
comparison
equal
deleted
inserted
replaced
2811:6cc1bf599a56 | 2812:cea361c342f4 |
---|---|
200 # because the compiled lisp files are part of the distribution | 200 # because the compiled lisp files are part of the distribution |
201 # and you cannot remake them without installing Emacs first. | 201 # and you cannot remake them without installing Emacs first. |
202 SUBDIR = lib-src src | 202 SUBDIR = lib-src src |
203 | 203 |
204 # The makefiles of the directories in $SUBDIR. | 204 # The makefiles of the directories in $SUBDIR. |
205 SUBDIR_MAKEFILES = lib-src/Makefile src/Makefile | 205 SUBDIR_MAKEFILES = lib-src/Makefile src/Makefile oldXMenu/Makefile |
206 | 206 |
207 # Subdirectories to install, and where they'll go. | 207 # Subdirectories to install, and where they'll go. |
208 # lib-src's makefile knows how to install it, so we don't do that here. | 208 # lib-src's makefile knows how to install it, so we don't do that here. |
209 # When installing the info files, we need to do special things to | 209 # When installing the info files, we need to do special things to |
210 # avoid nuking an existing dir file, so we don't do that here; | 210 # avoid nuking an existing dir file, so we don't do that here; |
211 # instead, we have written out explicit code in the `install' targets. | 211 # instead, we have written out explicit code in the `install' targets. |
212 COPYDIR = etc ${srcdir}/lisp ${srcdir}/external-lisp | 212 COPYDIR = etc ${srcdir}/etc ${srcdir}/lisp ${srcdir}/external-lisp |
213 COPYDESTS = ${etcdir} ${lispdir} ${externallispdir} | 213 COPYDESTS = ${etcdir} ${etcdir} ${lispdir} ${externallispdir} |
214 | 214 |
215 all: src/paths.h ${SUBDIR} | 215 all: src/paths.h ${SUBDIR} |
216 | 216 |
217 removenullpaths=sed -e 's/^://' -e 's/:$$//' -e 's/::/:/' | 217 removenullpaths=sed -e 's/^://' -e 's/:$$//' -e 's/::/:/' |
218 | 218 |
238 | 238 |
239 .RECURSIVE: ${SUBDIR} | 239 .RECURSIVE: ${SUBDIR} |
240 | 240 |
241 ${SUBDIR}: ${SUBDIR_MAKEFILES} FRC | 241 ${SUBDIR}: ${SUBDIR_MAKEFILES} FRC |
242 cd $@; $(MAKE) all ${MFLAGS} \ | 242 cd $@; $(MAKE) all ${MFLAGS} \ |
243 CC='${CC}' CFLAGS='${CFLAGS}' \ | 243 CC='${CC}' CFLAGS='${CFLAGS}' prefix='${prefix}' \ |
244 srcdir='${srcdir}/$@' libdir='${libdir}' | 244 srcdir='${srcdir}/$@' libdir='${libdir}' |
245 | 245 |
246 ## We build the makefiles for the subdirectories here so that we can | 246 ## We build the makefiles for the subdirectories here so that we can |
247 ## edit the values for the path variables into them. This means that | 247 ## edit the values for the path variables into them. This means that |
248 ## when the user has built them from this makefile once, they will use | 248 ## when the user has built them from this makefile once, they will use |
253 @(echo "# This file is generated from \`${srcdir}/lib-src/Makefile.in'." ; \ | 253 @(echo "# This file is generated from \`${srcdir}/lib-src/Makefile.in'." ; \ |
254 echo "# If you are thinking about editing it, you should seriously consider" ; \ | 254 echo "# If you are thinking about editing it, you should seriously consider" ; \ |
255 echo "# running \`make lib-src/Makefile' at the top of the" ; \ | 255 echo "# running \`make lib-src/Makefile' at the top of the" ; \ |
256 echo "# Emacs build tree instead, or editing" ; \ | 256 echo "# Emacs build tree instead, or editing" ; \ |
257 echo "# \`${srcdir}/lib-src/Makefile.in' itself." ; \ | 257 echo "# \`${srcdir}/lib-src/Makefile.in' itself." ; \ |
258 /bin/sed < ${srcdir}/lib-src/Makefile.in \ | 258 sed < ${srcdir}/lib-src/Makefile.in \ |
259 -e 's|^\(version *=\).*$$|\1'"${version}"'|' \ | 259 -e 's|^\(version *=\).*$$|\1'"${version}"'|' \ |
260 -e 's|^\(configname *=\).*$$|\1'"${configuration}"'|' \ | 260 -e 's|^\(configname *=\).*$$|\1'"${configuration}"'|' \ |
261 -e 's|^\(prefix *=\).*$$|\1'"${prefix}"'|' \ | 261 -e 's|^\(prefix *=\).*$$|\1'"${prefix}"'|' \ |
262 -e 's|^\(exec_prefix *=\).*$$|\1'"${exec_prefix}"'|' \ | 262 -e 's|^\(exec_prefix *=\).*$$|\1'"${exec_prefix}"'|' \ |
263 -e 's|^\(libdir *=\).*$$|\1'"${libdir}"'|' \ | 263 -e 's|^\(libdir *=\).*$$|\1'"${libdir}"'|' \ |
264 -e 's|^\(srcdir *=\).*$$|\1'"${srcdir}"'|' \ | 264 -e 's|^\(srcdir *=\).*$$|\1'"${srcdir}"'/lib-src|' \ |
265 -e 's|^\(VPATH *=\).*$$|\1'"${srcdir}"'/lib-src|' \ | |
265 -e 's|^\(archlibdir *=\).*$$|\1'"${archlibdir}"'|' \ | 266 -e 's|^\(archlibdir *=\).*$$|\1'"${archlibdir}"'|' \ |
266 -e 's|^\(ALLOCA *=\).*$$|\1'"${ALLOCA}"'|' \ | 267 -e 's|^\(ALLOCA *=\).*$$|\1'"${ALLOCA}"'|' \ |
267 -e 's|^CC *=.*$$|CC='"${CC}"'|' \ | 268 -e 's|^CC *=.*$$|CC='"${CC}"'|' \ |
268 -e 's|^CFLAGS *=.*$$|CFLAGS='"${CFLAGS}"'|' \ | 269 -e 's|^CFLAGS *=.*$$|CFLAGS='"${CFLAGS}"'|' \ |
269 -e 's|^C_SWITCH_SYSTEM *=.*$$|C_SWITCH_SYSTEM='"${C_SWITCH_SYSTEM}"'|' \ | 270 -e 's|^C_SWITCH_SYSTEM *=.*$$|C_SWITCH_SYSTEM='"${C_SWITCH_SYSTEM}"'|' \ |
278 @(echo "# This file is generated from \`${srcdir}/src/Makefile.in'." ; \ | 279 @(echo "# This file is generated from \`${srcdir}/src/Makefile.in'." ; \ |
279 echo "# If you are thinking about editing it, you should seriously consider" ; \ | 280 echo "# If you are thinking about editing it, you should seriously consider" ; \ |
280 echo "# running \`make src/Makefile' at the top of the" ; \ | 281 echo "# running \`make src/Makefile' at the top of the" ; \ |
281 echo "# Emacs build tree instead, or editing" ; \ | 282 echo "# Emacs build tree instead, or editing" ; \ |
282 echo "# \`${srcdir}/src/Makefile.in' itself." ; \ | 283 echo "# \`${srcdir}/src/Makefile.in' itself." ; \ |
283 /bin/sed < ${srcdir}/src/Makefile.in \ | 284 sed < ${srcdir}/src/Makefile.in \ |
284 -e 's|^\(srcdir *=\).*$$|\1'"${srcdir}"'|' \ | 285 -e 's|^\(srcdir *=\).*$$|\1'"${srcdir}"'/src|' \ |
286 -e 's|^\(VPATH *=\).*$$|\1'"${srcdir}"'/src|' \ | |
285 -e 's|^CC *=.*$$|CC='"${CC}"'|' \ | 287 -e 's|^CC *=.*$$|CC='"${CC}"'|' \ |
286 -e 's|^LN_S *=.*$$|LN_S='"${LN_S}"'|' \ | 288 -e 's|^LN_S *=.*$$|LN_S='"${LN_S}"'|' \ |
287 -e 's|^CFLAGS *=.*$$|CFLAGS='"${CFLAGS}"'|' \ | 289 -e 's|^CFLAGS *=.*$$|CFLAGS='"${CFLAGS}"'|' \ |
288 -e '/^# DIST: /d') > src/Makefile.tmp | 290 -e '/^# DIST: /d') > src/Makefile.tmp |
289 @${srcdir}/move-if-change src/Makefile.tmp src/Makefile | 291 @${srcdir}/move-if-change src/Makefile.tmp src/Makefile |
290 chmod -w src/Makefile | 292 chmod -w src/Makefile |
291 | 293 |
292 oldXMenu/Makefile: ${srcdir}/oldXMenu/Makefile Makefile | 294 oldXMenu/Makefile: ${srcdir}/oldXMenu/Makefile Makefile |
293 echo "Producing \`oldXMenu/Makefile' from \`${srcdir}/oldXMenu/Makefile.in'." | |
294 rm -f oldXMenu/Makefile.tmp | 295 rm -f oldXMenu/Makefile.tmp |
295 cp "${srcdir}"/oldXMenu/Makefile oldXMenu/Makefile | 296 @echo "Producing \`oldXMenu/Makefile' from \`${srcdir}/oldXMenu/Makefile'." |
296 | 297 @(echo "# This file is generated from \`${srcdir}/oldXMenu/Makefile'." ; \ |
298 echo "# If you are thinking about editing it, you should seriously consider" ; \ | |
299 echo "# running \`make oldXMenu/Makefile' at the top of the" ; \ | |
300 echo "# Emacs build tree instead, or editing" ; \ | |
301 echo "# \`${srcdir}/oldXMenu/Makefile.in' itself." ; \ | |
302 sed < ${srcdir}/oldXMenu/Makefile \ | |
303 -e 's|^\(srcdir *=\).*$$|\1'"${srcdir}"'/oldXMenu|' \ | |
304 -e 's|^\(VPATH *=\).*$$|\1'"${srcdir}"'/oldXMenu|' \ | |
305 -e 's|^CC *=.*$$|CC='"${CC}"'|' \ | |
306 -e 's|^DEFS *=.*$$|DEFS='"${DEFS}"'|' \ | |
307 -e '/^# DIST: /d') > oldXMenu/Makefile.tmp | |
308 @${srcdir}/move-if-change oldXMenu/Makefile.tmp oldXMenu/Makefile | |
309 chmod -w oldXMenu/Makefile | |
297 | 310 |
298 Makefile: | 311 Makefile: |
299 ./config.status | 312 ./config.status |
300 | 313 |
301 # ==================== Installation ==================== | 314 # ==================== Installation ==================== |
316 dest=$$1 ; shift ; \ | 329 dest=$$1 ; shift ; \ |
317 [ -d $${dir} ] \ | 330 [ -d $${dir} ] \ |
318 && [ `(cd $${dir}; /bin/pwd)` != `(cd $${dest}; /bin/pwd)` ] \ | 331 && [ `(cd $${dir}; /bin/pwd)` != `(cd $${dest}; /bin/pwd)` ] \ |
319 && (echo "Copying $${dir}..." ; \ | 332 && (echo "Copying $${dir}..." ; \ |
320 rm -rf $${dest} ; mkdir $${dest} ; \ | 333 rm -rf $${dest} ; mkdir $${dest} ; \ |
321 (cd $${dir}; tar cf - . ) | (cd $${dest}; umask 0; tar xf - ); \ | 334 (cd $${dir}; tar cf - . )|(cd $${dest}; umask 0; tar xvf - ); \ |
322 for subdir in `find $${dest} -type d ! -name RCS -print` ; do \ | 335 for subdir in `find $${dest} -type d ! -name RCS -print` ; do \ |
323 rm -rf $${subdir}/RCS ; \ | 336 rm -rf $${subdir}/RCS ; \ |
324 rm -rf $${subdir}/CVS ; \ | 337 rm -rf $${subdir}/CVS ; \ |
325 rm -f $${subdir}/\#* ; \ | 338 rm -f $${subdir}/\#* ; \ |
326 rm -f $${subdir}/*~ ; \ | 339 rm -f $${subdir}/*~ ; \ |
327 done) ; \ | 340 done) ; \ |
328 done | 341 done |
329 -(cd info ; \ | 342 -(cd ${srcdir}/info ; \ |
330 if [ ! -f ${infodir}/dir ]; then \ | 343 if [ ! -f ${infodir}/dir ] && [ -f dir ]; then \ |
331 ${INSTALL_DATA} ${INSTALLFLAGS} -m 444 ./dir ${infodir}/dir ; \ | 344 ${INSTALL_DATA} ${INSTALLFLAGS} -m 444 ./dir ${infodir}/dir ; \ |
332 fi ; \ | 345 fi ; \ |
333 if [ "`echo *.info*`" != "*.info*" ]; then \ | 346 if [ "`echo *.info*`" != "*.info*" ]; then \ |
334 for f in *.info* ; do \ | 347 for f in *.info* ; do \ |
335 ${INSTALL_DATA} ${INSTALLFLAGS} -m 444 $$f ${infodir}/$$f ; \ | 348 ${INSTALL_DATA} ${INSTALLFLAGS} -m 444 $$f ${infodir}/$$f ; \ |
336 done ; \ | 349 done ; \ |
337 fi) | 350 fi) |
338 for page in emacs etags ctags ; do \ | 351 cd ${srcdir}/etc; for page in emacs etags ctags ; do \ |
339 ${INSTALL_DATA} ${INSTALLFLAGS} -m 444 etc/$${page}.1 \ | 352 ${INSTALL_DATA} ${INSTALLFLAGS} -m 444 $${page}.1 \ |
340 ${mandir}/$${page}${manext} ; \ | 353 ${mandir}/$${page}${manext} ; \ |
341 done | 354 done |
342 ${INSTALL_PROGRAM} ${INSTALLFLAGS} -m 1755 src/emacs \ | 355 ${INSTALL_PROGRAM} ${INSTALLFLAGS} -m 1755 src/emacs \ |
343 ${bindir}/emacs-${version} | 356 ${bindir}/emacs-${version} |
344 -rm -f ${bindir}/emacs | 357 -rm -f ${bindir}/emacs |