mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 17:15:00 +02:00
avoid rdep in the top level make process (subdir.mk) - it leaks too much memory and increases the startup time for regular make commands. timestamp.pl is more lightweight here
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8533 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
d8af39f3e4
commit
e9b5e692d5
@ -37,13 +37,9 @@ endef
|
|||||||
# Parameters: <subdir> <name> <target>
|
# Parameters: <subdir> <name> <target>
|
||||||
define stampfile
|
define stampfile
|
||||||
$(1)/stamp-$(3):=$(STAGING_DIR)/stamp/.$(2)_$(3)
|
$(1)/stamp-$(3):=$(STAGING_DIR)/stamp/.$(2)_$(3)
|
||||||
$(if $(__rdep_$(1)),,
|
$$($(1)/stamp-$(3)): $(TMP_DIR)/.build
|
||||||
$(call rdep,$(1),$$($(1)/stamp-$(3)),)
|
@+$(SCRIPT_DIR)/timestamp.pl -n $$($(1)/stamp-$(3)) $(1) || \
|
||||||
__rdep_$(1):=1
|
$(MAKE) $$($(1)/flags-$(3)) $(1)/$(3)
|
||||||
)
|
|
||||||
|
|
||||||
$$($(1)/stamp-$(3)):
|
|
||||||
@+$(MAKE) $$($(1)/flags-$(3)) $(1)/$(3)
|
|
||||||
@mkdir -p $$$$(dirname $$($(1)/stamp-$(3)))
|
@mkdir -p $$$$(dirname $$($(1)/stamp-$(3)))
|
||||||
@touch $$($(1)/stamp-$(3))
|
@touch $$($(1)/stamp-$(3))
|
||||||
|
|
||||||
|
@ -39,6 +39,9 @@ while (@ARGV > 0) {
|
|||||||
$options{"findopts"} .= " -and -not -path \\*".$str."\\*"
|
$options{"findopts"} .= " -and -not -path \\*".$str."\\*"
|
||||||
} elsif ($path =~ /^-f/) {
|
} elsif ($path =~ /^-f/) {
|
||||||
$options{"findopts"} .= " -follow";
|
$options{"findopts"} .= " -follow";
|
||||||
|
} elsif ($path =~ /^-n/) {
|
||||||
|
my $arg = $ARGV[0];
|
||||||
|
$options{$path} = $arg;
|
||||||
} elsif ($path =~ /^-/) {
|
} elsif ($path =~ /^-/) {
|
||||||
$options{$path} = 1;
|
$options{$path} = 1;
|
||||||
} else {
|
} else {
|
||||||
@ -54,7 +57,9 @@ while (@ARGV > 0) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($options{"-p"}) {
|
if ($options{"-n"}) {
|
||||||
|
exit ($n eq $options{"-n"} ? 0 : 1);
|
||||||
|
} elsif ($options{"-p"}) {
|
||||||
print "$n\n";
|
print "$n\n";
|
||||||
} elsif ($options{"-t"}) {
|
} elsif ($options{"-t"}) {
|
||||||
print "$ts\n";
|
print "$ts\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user