unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* make mostlyclean
@ 2006-11-29 21:33 Glenn Morris
  2006-11-30 19:48 ` Richard Stallman
  0 siblings, 1 reply; 6+ messages in thread
From: Glenn Morris @ 2006-11-29 21:33 UTC (permalink / raw)



In src/, `make mostlyclean' removes (amongst other things)
"bootstrap-emacs", but it does not remove "emacs-22.0.91" (sans build
number), which is a hardlink to "bootstrap-emacs". Should it not
delete that file as well? It is the biggest file in src/ by some
margin in my build tree.

Maybe this is tricky because src/Makefile does not have the variable
EMACSFULL with the version number from the top-level Makefile...

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: make mostlyclean
  2006-11-29 21:33 make mostlyclean Glenn Morris
@ 2006-11-30 19:48 ` Richard Stallman
  2006-12-01  3:00   ` Glenn Morris
  0 siblings, 1 reply; 6+ messages in thread
From: Richard Stallman @ 2006-11-30 19:48 UTC (permalink / raw)
  Cc: emacs-devel

    In src/, `make mostlyclean' removes (amongst other things)
    "bootstrap-emacs", but it does not remove "emacs-22.0.91" (sans build
    number), which is a hardlink to "bootstrap-emacs". Should it not
    delete that file as well? It is the biggest file in src/ by some
    margin in my build tree.

I think this is correct.  If you build Emacs again it will get a new
number.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: make mostlyclean
  2006-11-30 19:48 ` Richard Stallman
@ 2006-12-01  3:00   ` Glenn Morris
  2006-12-01 22:01     ` Richard Stallman
  0 siblings, 1 reply; 6+ messages in thread
From: Glenn Morris @ 2006-12-01  3:00 UTC (permalink / raw)
  Cc: emacs-devel

Richard Stallman wrote:

>     In src/, `make mostlyclean' removes (amongst other things)
>     "bootstrap-emacs", but it does not remove "emacs-22.0.91" (sans build
>     number), which is a hardlink to "bootstrap-emacs". Should it not
>     delete that file as well? It is the biggest file in src/ by some
>     margin in my build tree.
>
> I think this is correct.  If you build Emacs again it will get a new
> number.

I either did not explain or misunderstood. The file I am referring to
does not have a number.

The bootstrap sequence goes:

Dumping under names emacs and emacs-22.0.91
mv -f emacs bootstrap-emacs
...do stuff using bootstrap-emacs...
make mostlyclean
  rm -f bootstrap-emacs
Dumping under names emacs and emacs-22.0.91.1

At the end, I have:

emacs and emacs-22.0.91.1  (hard links, 13 MB)
emacs-22.0.91              (20MB, was a hard link to bootstrap-emacs)

If bootstrap-emacs gets deleted, surely emacs-22.0.91 (without ".1" at
the end) should too?

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: make mostlyclean
  2006-12-01  3:00   ` Glenn Morris
@ 2006-12-01 22:01     ` Richard Stallman
  2006-12-02  2:58       ` Glenn Morris
  0 siblings, 1 reply; 6+ messages in thread
From: Richard Stallman @ 2006-12-01 22:01 UTC (permalink / raw)
  Cc: emacs-devel

    If bootstrap-emacs gets deleted, surely emacs-22.0.91 (without ".1" at
    the end) should too?

That would be logical, I agree.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: make mostlyclean
  2006-12-01 22:01     ` Richard Stallman
@ 2006-12-02  2:58       ` Glenn Morris
  2006-12-03  3:14         ` Richard Stallman
  0 siblings, 1 reply; 6+ messages in thread
From: Glenn Morris @ 2006-12-02  2:58 UTC (permalink / raw)
  Cc: emacs-devel

Richard Stallman wrote:

> That would be logical, I agree.

Logic may be satisfied at the cost of aesthetics, by adding `version'
to src/Makefile:


*** Makefile.in	15 Sep 2006 07:19:14 -0000	1.331
--- Makefile.in	2 Dec 2006 02:41:42 -0000
***************
*** 38,43 ****
--- 38,44 ----
  LDFLAGS=@LDFLAGS@
  LN_S=@LN_S@
  EXEEXT=@EXEEXT@
+ version=@version@
  # Substitute an assignment for the MAKE variable, because
  # BSD doesn't have it as a default.
  @SET_MAKE@
***************
*** 1309,1319 ****
  ${libsrc}emacstool${EXEEXT}: ${libsrc}emacstool.c
  	cd ${libsrc}; ${MAKE} ${MFLAGS} emacstool${EXEEXT}
  bootstrapclean:
! 	rm -f bootstrap-emacs${EXEEXT}
  mostlyclean:
  	rm -f temacs${EXEEXT} prefix-args${EXEEXT} core *.core \#* *.o libXMenu11.a liblw.a
  	rm -f ../etc/DOC
! 	rm -f bootstrap-emacs${EXEEXT}
  	rm -f buildobj.lst
  clean: mostlyclean
  	rm -f emacs-*${EXEEXT} emacs${EXEEXT}
--- 1310,1320 ----
  ${libsrc}emacstool${EXEEXT}: ${libsrc}emacstool.c
  	cd ${libsrc}; ${MAKE} ${MFLAGS} emacstool${EXEEXT}
  bootstrapclean:
! 	rm -f bootstrap-emacs${EXEEXT} emacs-${version}${EXEEXT}
  mostlyclean:
  	rm -f temacs${EXEEXT} prefix-args${EXEEXT} core *.core \#* *.o libXMenu11.a liblw.a
  	rm -f ../etc/DOC
! 	rm -f bootstrap-emacs${EXEEXT} emacs-${version}${EXEEXT}
  	rm -f buildobj.lst
  clean: mostlyclean
  	rm -f emacs-*${EXEEXT} emacs${EXEEXT}

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: make mostlyclean
  2006-12-02  2:58       ` Glenn Morris
@ 2006-12-03  3:14         ` Richard Stallman
  0 siblings, 0 replies; 6+ messages in thread
From: Richard Stallman @ 2006-12-03  3:14 UTC (permalink / raw)
  Cc: emacs-devel

This change looks good.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-12-03  3:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-29 21:33 make mostlyclean Glenn Morris
2006-11-30 19:48 ` Richard Stallman
2006-12-01  3:00   ` Glenn Morris
2006-12-01 22:01     ` Richard Stallman
2006-12-02  2:58       ` Glenn Morris
2006-12-03  3:14         ` Richard Stallman

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).