Move first_prereq test to m4 code.
[ira/wip.git] / source / build / smb_build / makefile.pm
index 0b1cc7eac232edf14fece5c7f4a6098f66254287..5799d89c5701ca620fccb2688dbed4c16bfe11a8 100644 (file)
@@ -111,14 +111,9 @@ __EOD__
 sub _prepare_suffix_rules($)
 {
        my ($self) = @_;
-       my $first_prereq = '$*.c';
-
-       if ($self->{config}->{GNU_MAKE} eq 'yes') {
-               $first_prereq = '$<';
-       }
 
        $self->output(<< "__EOD__"
-FIRST_PREREQ = $first_prereq
+FIRST_PREREQ = $self->{config}->{FIRST_PREREQ}
 
 __EOD__
 );
@@ -461,7 +456,6 @@ sub Binary($$)
                push (@{$self->{torture_progs}}, "$installdir/$ctx->{BINARY}");
        }
 
-
        push (@{$self->{binaries}}, "$localdir/$ctx->{BINARY}");
 
        $self->_prepare_list($ctx, "OBJ_LIST");