unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: [Emacs-diffs] /srv/bzr/emacs/trunk r103199: * src/Makefile.in (gl-stamp): Create globals.h here.
       [not found] <E1PnEcS-0007m8-8n@internal.in.savannah.gnu.org>
@ 2011-02-10  2:31 ` Stefan Monnier
  2011-02-10  9:37   ` Andreas Schwab
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Monnier @ 2011-02-10  2:31 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: emacs-devel

> -globals.h: gl-stamp
> -	cp gl-stamp globals.h
> +globals.h: gl-stamp; @true
 
>  GLOBAL_SOURCES = $(base_obj:.o=.c) $(NS_OBJC_OBJ:.o=.m)
 
>  gl-stamp: $(libsrc)/make-docfile$(EXEEXT) $(GLOBAL_SOURCES)
>  	@rm -f gl-tmp
>  	$(libsrc)/make-docfile -d $(srcdir) -g $(SOME_MACHINE_OBJECTS) $(obj) > gl-tmp
> -	$(srcdir)/../move-if-change gl-tmp gl-stamp
> +	$(srcdir)/../move-if-change gl-tmp globals.h
> +	echo timestamp > $@
 
I don't understand this gl-stamp business.  The dependencies seem to
imply that any change to one of the source files will cause global.h to
be rebuilt, so we could just as well get rid of gl-stamp, right?
What am I missing?


        Stefan



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

* Re: [Emacs-diffs] /srv/bzr/emacs/trunk r103199: * src/Makefile.in (gl-stamp): Create globals.h here.
  2011-02-10  2:31 ` [Emacs-diffs] /srv/bzr/emacs/trunk r103199: * src/Makefile.in (gl-stamp): Create globals.h here Stefan Monnier
@ 2011-02-10  9:37   ` Andreas Schwab
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Schwab @ 2011-02-10  9:37 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: emacs-devel

You always need a stamp file if you want to avoid touching a target
unnecessarily.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



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

end of thread, other threads:[~2011-02-10  9:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <E1PnEcS-0007m8-8n@internal.in.savannah.gnu.org>
2011-02-10  2:31 ` [Emacs-diffs] /srv/bzr/emacs/trunk r103199: * src/Makefile.in (gl-stamp): Create globals.h here Stefan Monnier
2011-02-10  9:37   ` Andreas Schwab

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).