diff options
author | Alexandre Oliva <oliva@dcc.unicamp.br> | 1999-04-17 19:44:53 +0000 |
---|---|---|
committer | Alexandre Oliva <oliva@dcc.unicamp.br> | 1999-04-17 19:44:53 +0000 |
commit | fd656731d3c9548a520cb485e874336764fdba2a (patch) | |
tree | 346831d70504c34654ceecad309b35a23896478c /lib/am/remake-hdr.am | |
parent | aecaf575a8b2e4be943ce64199253d6acb9ded25 (diff) | |
download | automake-fd656731d3c9548a520cb485e874336764fdba2a.tar.gz |
* automake.in: Create stamps for headers in appropriate
directories, even if the input file lives in a different place.
* remake-hdr.am: Likewise.
Diffstat (limited to 'lib/am/remake-hdr.am')
-rw-r--r-- | lib/am/remake-hdr.am | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/lib/am/remake-hdr.am b/lib/am/remake-hdr.am index d114c85b4..5b11e891e 100644 --- a/lib/am/remake-hdr.am +++ b/lib/am/remake-hdr.am @@ -35,19 +35,20 @@ ## of the rebuild rule. @mv @STAMP@T @STAMP@ ## Explicitly look in srcdir for benefit of non-GNU makes. -$(srcdir)/@CONFIG_HEADER_IN@: @MAINTAINER_MODE_TRUE@$(srcdir)/@STAMP@.in +## SRC_STAMP takes into account a possible subdir where CONFIG_HEADER_IN is +$(srcdir)/@CONFIG_HEADER_IN@: @MAINTAINER_MODE_TRUE@$(srcdir)/@SRC_STAMP@.in ## Recover from removal of CONFIG_HEADER_IN @if test ! -f $@; then \ - rm -f $(srcdir)/@STAMP@.in; \ - $(MAKE) $(srcdir)/@STAMP@.in; \ + rm -f $(srcdir)/@SRC_STAMP@.in; \ + $(MAKE) $(srcdir)/@SRC_STAMP@.in; \ else :; fi -$(srcdir)/@STAMP@.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) @FILES@ - @rm -f $(srcdir)/@STAMP@.in $(srcdir)/@STAMP@.inT +$(srcdir)/@SRC_STAMP@.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) @FILES@ + @rm -f $(srcdir)/@SRC_STAMP@.in $(srcdir)/@SRC_STAMP@.inT ## We used to try to get a real timestamp here. But the fear is that ## that will cause unnecessary cvs conflicts - @echo timestamp > $(srcdir)/@STAMP@.inT 2> /dev/null + @echo timestamp > $(srcdir)/@SRC_STAMP@.inT 2> /dev/null cd $(top_srcdir) && $(AUTOHEADER) ## Creating the timestamp first, and moving it later, helps ensure that ## it will be older than the header file, avoiding needless triggering ## of the rebuild rule. - @mv $(srcdir)/@STAMP@.inT $(srcdir)/@STAMP@.in + @mv $(srcdir)/@SRC_STAMP@.inT $(srcdir)/@SRC_STAMP@.in |