mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-04-12 18:40:23 +08:00
mkdep.pl: do not generate a selfrule for embedded dependencies
If we are using embedded dependencies, do not generate a selfrule. It is meaningless. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
parent
99fec7e7d0
commit
e72d4bf519
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/perl
|
||||
## --------------------------------------------------------------------------
|
||||
##
|
||||
## Copyright 1996-2020 The NASM Authors - All Rights Reserved
|
||||
## Copyright 1996-2024 The NASM Authors - All Rights Reserved
|
||||
## See the file AUTHORS included with the NASM distribution for
|
||||
## the specific copyright holders.
|
||||
##
|
||||
@ -127,6 +127,11 @@ sub alldeps($$) {
|
||||
sub convert_file($$) {
|
||||
my($file,$sep) = @_;
|
||||
|
||||
if ($file eq '' || $file eq File::Spec->curdir() ||
|
||||
$file eq File::Spec->rootdir()) {
|
||||
return undef;
|
||||
}
|
||||
|
||||
my @fspec = (basename($file));
|
||||
while ( ($file = dirname($file)) ne File::Spec->curdir() &&
|
||||
$file ne File::Spec->rootdir() ) {
|
||||
@ -208,7 +213,10 @@ sub insert_deps($) {
|
||||
close($in);
|
||||
|
||||
$is_external = $is_external && defined($external);
|
||||
undef $external if ( !$is_external );
|
||||
if ( !$is_external ) {
|
||||
undef $external;
|
||||
$selfrule = 0;
|
||||
}
|
||||
|
||||
my $out;
|
||||
my $outpath;
|
||||
@ -228,7 +236,6 @@ sub insert_deps($) {
|
||||
}
|
||||
unlink($external);
|
||||
} else {
|
||||
|
||||
my $e;
|
||||
|
||||
foreach my $dfile ($external, sort(keys(%deps)) ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user