Mercurial > emacs
comparison Makefile.in @ 8807:1fb0575ee03a
Use just one FRC target.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 16 Sep 1994 23:36:57 +0000 |
parents | b58e8634df8b |
children | 64123b212090 |
comparison
equal
deleted
inserted
replaced
8806:2d3bfce2e1f0 | 8807:1fb0575ee03a |
---|---|
217 # make different values for the various directories. Since we use | 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 | 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 | 219 # something notable, so the only unnecessary work we do is in building |
220 # paths.h.tmp$$$$, which isn't much. | 220 # paths.h.tmp$$$$, which isn't much. |
221 # Note that sed is not in /bin on 386bsd. | 221 # Note that sed is not in /bin on 386bsd. |
222 paths-force: FRC.src.paths.h | 222 paths-force: FRC |
223 @echo "Producing \`src/paths.h' from \`src/paths.h.in'." | 223 @echo "Producing \`src/paths.h' from \`src/paths.h.in'." |
224 @(lisppath=`echo ${lisppath} | ${removenullpaths}` ; \ | 224 @(lisppath=`echo ${lisppath} | ${removenullpaths}` ; \ |
225 buildlisppath=`echo ${buildlisppath} | ${removenullpaths}` ; \ | 225 buildlisppath=`echo ${buildlisppath} | ${removenullpaths}` ; \ |
226 sed < ${srcdir}/src/paths.h.in > paths.h.tmp$$$$ \ | 226 sed < ${srcdir}/src/paths.h.in > paths.h.tmp$$$$ \ |
227 -e 's;\(#.*PATH_LOADSEARCH\).*$$;\1 "'$${lisppath}'";' \ | 227 -e 's;\(#.*PATH_LOADSEARCH\).*$$;\1 "'$${lisppath}'";' \ |
231 -e 's;\(#.*PATH_DATA\).*$$;\1 "${etcdir}";' \ | 231 -e 's;\(#.*PATH_DATA\).*$$;\1 "${etcdir}";' \ |
232 -e 's;\(#.*PATH_DOC\).*$$;\1 "${docdir}";' \ | 232 -e 's;\(#.*PATH_DOC\).*$$;\1 "${docdir}";' \ |
233 -e 's;\(#.*PATH_LOCK\).*$$;\1 "${lockdir}/";') && \ | 233 -e 's;\(#.*PATH_LOCK\).*$$;\1 "${lockdir}/";') && \ |
234 ${srcdir}/move-if-change paths.h.tmp$$$$ src/paths.h | 234 ${srcdir}/move-if-change paths.h.tmp$$$$ src/paths.h |
235 | 235 |
236 src: lib-src FRC.src src/paths.h | 236 src: lib-src FRC src/paths.h |
237 | 237 |
238 # This ought to depend on src/paths.h, so that in parallel make | 238 # This ought to depend on src/paths.h, so that in parallel make |
239 # src/paths.h will be available for the compilations in lib-src. | 239 # src/paths.h will be available for the compilations in lib-src. |
240 # But that causes trouble in `make install' if a different prefix | 240 # But that causes trouble in `make install' if a different prefix |
241 # is specified at that time. | 241 # is specified at that time. |
242 lib-src: FRC.lib-src src/paths.h | 242 lib-src: FRC src/paths.h |
243 | 243 |
244 .RECURSIVE: ${SUBDIR} | 244 .RECURSIVE: ${SUBDIR} |
245 | 245 |
246 ${SUBDIR}: ${SUBDIR_MAKEFILES} FRC | 246 ${SUBDIR}: ${SUBDIR_MAKEFILES} FRC |
247 cd $@; $(MAKE) all $(MFLAGS) \ | 247 cd $@; $(MAKE) all $(MFLAGS) \ |
345 | 345 |
346 ### Build all the directories we're going to install Emacs in. Since | 346 ### Build all the directories we're going to install Emacs in. Since |
347 ### we may be creating several layers of directories (for example, | 347 ### we may be creating several layers of directories (for example, |
348 ### /usr/local/lib/emacs/19.0/mips-dec-ultrix4.2), we use make-path | 348 ### /usr/local/lib/emacs/19.0/mips-dec-ultrix4.2), we use make-path |
349 ### instead of mkdir. Not all systems' mkdirs have the `-p' flag. | 349 ### instead of mkdir. Not all systems' mkdirs have the `-p' flag. |
350 mkdir: FRC.mkdir | 350 mkdir: FRC |
351 ./lib-src/make-path ${COPYDESTS} ${lockdir} ${infodir} ${mandir} \ | 351 ./lib-src/make-path ${COPYDESTS} ${lockdir} ${infodir} ${mandir} \ |
352 ${bindir} ${datadir} ${docdir} ${libdir} \ | 352 ${bindir} ${datadir} ${docdir} ${libdir} \ |
353 `echo ${locallisppath} | sed 's/:/ /g'` | 353 `echo ${locallisppath} | sed 's/:/ /g'` |
354 -chmod 777 ${lockdir} | 354 -chmod 777 ${lockdir} |
355 | 355 |
379 (cd ${infodir}; rm -f cl* emacs* forms* info* vip*) | 379 (cd ${infodir}; rm -f cl* emacs* forms* info* vip*) |
380 (cd ${mandir}; rm -f emacs.1 etags.1 ctags.1) | 380 (cd ${mandir}; rm -f emacs.1 etags.1 ctags.1) |
381 (cd ${bindir}; rm -f emacs-${version} $(EMACS)) | 381 (cd ${bindir}; rm -f emacs-${version} $(EMACS)) |
382 | 382 |
383 | 383 |
384 ### Some makes seem to remember that they've built something called FRC, | 384 FRC: |
385 ### so you can only use a given FRC once per makefile. | |
386 FRC FRC.src.paths.h FRC.src FRC.lib-src FRC.mkdir: | |
387 FRC.mostlyclean FRC.clean FRC.distclean FRC.realclean: | |
388 | 385 |
389 # ==================== Cleaning up and miscellanea ==================== | 386 # ==================== Cleaning up and miscellanea ==================== |
390 | 387 |
391 .PHONY: mostlyclean clean distclean realclean extraclean | 388 .PHONY: mostlyclean clean distclean realclean extraclean |
392 | 389 |
393 ### `mostlyclean' | 390 ### `mostlyclean' |
394 ### Like `clean', but may refrain from deleting a few files that people | 391 ### Like `clean', but may refrain from deleting a few files that people |
395 ### normally don't want to recompile. For example, the `mostlyclean' | 392 ### normally don't want to recompile. For example, the `mostlyclean' |
396 ### target for GCC does not delete `libgcc.a', because recompiling it | 393 ### target for GCC does not delete `libgcc.a', because recompiling it |
397 ### is rarely necessary and takes a lot of time. | 394 ### is rarely necessary and takes a lot of time. |
398 mostlyclean: FRC.mostlyclean | 395 mostlyclean: FRC |
399 (cd src; $(MAKE) $(MFLAGS) mostlyclean) | 396 (cd src; $(MAKE) $(MFLAGS) mostlyclean) |
400 (cd oldXMenu; $(MAKE) $(MFLAGS) mostlyclean) | 397 (cd oldXMenu; $(MAKE) $(MFLAGS) mostlyclean) |
401 (cd lwlib; $(MAKE) $(MFLAGS) mostlyclean) | 398 (cd lwlib; $(MAKE) $(MFLAGS) mostlyclean) |
402 (cd lib-src; $(MAKE) $(MFLAGS) mostlyclean) | 399 (cd lib-src; $(MAKE) $(MFLAGS) mostlyclean) |
403 -(cd man && $(MAKE) $(MFLAGS) mostlyclean) | 400 -(cd man && $(MAKE) $(MFLAGS) mostlyclean) |
408 ### record the configuration. Also preserve files that could be made | 405 ### record the configuration. Also preserve files that could be made |
409 ### by building, but normally aren't because the distribution comes | 406 ### by building, but normally aren't because the distribution comes |
410 ### with them. | 407 ### with them. |
411 ### | 408 ### |
412 ### Delete `.dvi' files here if they are not part of the distribution. | 409 ### Delete `.dvi' files here if they are not part of the distribution. |
413 clean: FRC.clean | 410 clean: FRC |
414 (cd src; $(MAKE) $(MFLAGS) clean) | 411 (cd src; $(MAKE) $(MFLAGS) clean) |
415 (cd oldXMenu; $(MAKE) $(MFLAGS) clean) | 412 (cd oldXMenu; $(MAKE) $(MFLAGS) clean) |
416 (cd lwlib; $(MAKE) $(MFLAGS) clean) | 413 (cd lwlib; $(MAKE) $(MFLAGS) clean) |
417 (cd lib-src; $(MAKE) $(MFLAGS) clean) | 414 (cd lib-src; $(MAKE) $(MFLAGS) clean) |
418 -(cd man && $(MAKE) $(MFLAGS) clean) | 415 -(cd man && $(MAKE) $(MFLAGS) clean) |
425 ### distribution. | 422 ### distribution. |
426 top_distclean=\ | 423 top_distclean=\ |
427 rm -f config.status build-install ; \ | 424 rm -f config.status build-install ; \ |
428 rm -f Makefile ${SUBDIR_MAKEFILES} ; \ | 425 rm -f Makefile ${SUBDIR_MAKEFILES} ; \ |
429 (cd lock ; rm -f *) | 426 (cd lock ; rm -f *) |
430 distclean: FRC.distclean | 427 distclean: FRC |
431 (cd src; $(MAKE) $(MFLAGS) distclean) | 428 (cd src; $(MAKE) $(MFLAGS) distclean) |
432 (cd oldXMenu; $(MAKE) $(MFLAGS) distclean) | 429 (cd oldXMenu; $(MAKE) $(MFLAGS) distclean) |
433 (cd lwlib; $(MAKE) $(MFLAGS) distclean) | 430 (cd lwlib; $(MAKE) $(MFLAGS) distclean) |
434 (cd lib-src; $(MAKE) $(MFLAGS) distclean) | 431 (cd lib-src; $(MAKE) $(MFLAGS) distclean) |
435 (cd man && $(MAKE) $(MFLAGS) distclean) | 432 (cd man && $(MAKE) $(MFLAGS) distclean) |
445 ### One exception, however: `make realclean' should not delete | 442 ### One exception, however: `make realclean' should not delete |
446 ### `configure' even if `configure' can be remade using a rule in the | 443 ### `configure' even if `configure' can be remade using a rule in the |
447 ### Makefile. More generally, `make realclean' should not delete | 444 ### Makefile. More generally, `make realclean' should not delete |
448 ### anything that needs to exist in order to run `configure' and then | 445 ### anything that needs to exist in order to run `configure' and then |
449 ### begin to build the program. | 446 ### begin to build the program. |
450 realclean: FRC.realclean | 447 realclean: FRC |
451 (cd src; $(MAKE) $(MFLAGS) realclean) | 448 (cd src; $(MAKE) $(MFLAGS) realclean) |
452 (cd oldXMenu; $(MAKE) $(MFLAGS) realclean) | 449 (cd oldXMenu; $(MAKE) $(MFLAGS) realclean) |
453 (cd lwlib; $(MAKE) $(MFLAGS) realclean) | 450 (cd lwlib; $(MAKE) $(MFLAGS) realclean) |
454 (cd lib-src; $(MAKE) $(MFLAGS) realclean) | 451 (cd lib-src; $(MAKE) $(MFLAGS) realclean) |
455 -(cd man && $(MAKE) $(MFLAGS) realclean) | 452 -(cd man && $(MAKE) $(MFLAGS) realclean) |