1999-04-10 Alexandre Oliva <oliva@dcc.unicamp.br>
+ * automake.in (handle_source_transform): Add a pfx to used_pfx
+ only if it's conditional or non-empty, to reduce the number of
+ empty variables. Emit _OBJECS variable based on program name if
+ no SOURCES were explicitly specified.
+
* remake-hdr.am: Create the stamp file before the header file,
and just rename it after, so that the timestamps will be correct.
Reported by Marc Horowitz <marc@mit.edu>
local ($var) = $prefix . $one_file . "_SOURCES";
if (&variable_defined ($var))
{
- # Keep track of which prefixes we saw.
- $used_pfx{$xpfx} = 1
- unless $prefix =~ /EXTRA_/;
-
push (@sources, '$(' . $prefix . $one_file . "_SOURCES)");
push (@objects, '$(' . $xpfx . $one_file . "_OBJECTS)")
unless $prefix =~ /EXTRA_/;
unless $prefix =~ /EXTRA_/;
}
+ # Keep track of which prefixes we saw.
+ $used_pfx{$xpfx} = 1
+ unless $prefix =~ /EXTRA_/;
+
next;
}
}
+ # Avoid defining needless variables.
+ next if (scalar @files == 0);
+
+ # Keep track of which prefixes we saw.
+ $used_pfx{$xpfx} = 1
+ unless $prefix =~ /EXTRA_/;
+
($temp, @result) = &handle_single_transform_list ($obj, @files);
$linker = $temp if $linker eq '';
&define_pretty_variable ($xpfx . $one_file . "_OBJECTS", '', @result)
push (@dist_sources, $unxformed . '.c');
push (@objects, $unxformed . $obj);
push (@files, $unxformed . '.c');
+
+ ($temp, @result) = &handle_single_transform_list ($obj, @files);
+ $linker = $temp if $linker eq '';
+ &define_pretty_variable ($one_file . "_OBJECTS", '', @result)
}
else
{
EXTRA_DIST = $(m4data_DATA)
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_CLEAN_FILES =
+DIST_SOURCES =
DATA = $(m4data_DATA)
DIST_COMMON = $(m4data_DATA) Makefile.am Makefile.in
-DISTFILES = $(DIST_COMMON) $(SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
GZIP_ENV = --best
all: all-redirect