mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
r25697: make *clean doesn't work after a svn up when some *.mk files were removed
the error is: SAMBA_4_0/source> make clean make: *** No rule to make target `lib/ldb/samba/config.mk', needed by `Makefile'. Stop. the problem is: Makefile: config.status $(MK_FILES) ./config.status so now we let the MK_FILES variable empty for the *clean targets if gnu make is detected, we should later test if this construct is portable to other make implementations and remove the check for gnu make. metze
This commit is contained in:
parent
7a04419489
commit
4c8e539af1
@ -50,6 +50,7 @@ sub _set_config($$)
|
||||
}
|
||||
|
||||
$self->{developer} = ($self->{config}->{developer} eq "yes");
|
||||
$self->{gnu_make} = ($self->{config}->{GNU_MAKE} eq "yes");
|
||||
$self->{automatic_deps} = ($self->{config}->{automatic_dependencies} eq "yes");
|
||||
}
|
||||
|
||||
|
@ -231,7 +231,23 @@ sub _prepare_mk_files($)
|
||||
push (@tmp, $_);
|
||||
}
|
||||
|
||||
if ($self->{gnu_make}) {
|
||||
$self->output("
|
||||
ifneq (\$(MAKECMDGOALS),clean)
|
||||
ifneq (\$(MAKECMDGOALS),distclean)
|
||||
ifneq (\$(MAKECMDGOALS),realdistclean)
|
||||
");
|
||||
}
|
||||
|
||||
$self->output("MK_FILES = " . array2oneperline(\@tmp) . "\n");
|
||||
|
||||
if ($self->{gnu_make}) {
|
||||
$self->output("
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
");
|
||||
}
|
||||
}
|
||||
|
||||
sub array2oneperline($)
|
||||
|
Loading…
Reference in New Issue
Block a user