directories, even if the input file lives in a different place.
* remake-hdr.am: Likewise.
+1999-04-17 Erez Zadok <ezk@cs.columbia.edu>
+
+ * automake.in: Create stamps for headers in appropriate
+ directories, even if the input file lives in a different place.
+ * remake-hdr.am: Likewise.
+
1999-04-16 Tom Tromey <tromey@cygnus.com>
From Brian Ford:
$xform .= 's,\@CONFIG_HEADER_FULL\@,' . "${one_fullname}" . ',;';
$xform .= 's,\@STAMP\@,' . "${stamp_dir}${stamp_name}" . ',g;';
+ local ($out_dir) = &dirname ($ch_sans_dir);
+ $xform .= 's,\@SRC_STAMP\@,' . "${out_dir}/${stamp_name}" . ',g;';
$output_rules .= &file_contents_with_transform ($xform,
'remake-hdr');
- local ($out_dir) = &dirname ($ch_sans_dir);
&create ("${relative_dir}/${out_dir}/${stamp_name}.in");
&require_file_with_conf_line ($config_header_line, $FOREIGN,
"${out_dir}/${stamp_name}.in");
## 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
## 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