make: Fix detection of intermediate targets where make has changed its database whitespace
This commit is contained in:
parent
1950590367
commit
4b209b0b17
@ -20,8 +20,8 @@ function _make_target_extract_script()
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
1,/^# Files/ d; # skip until files section
|
1,/^# * Files/ d; # skip until files section
|
||||||
/^# Not a target/,/^$/ d; # skip not target blocks
|
/^# * Not a target/,/^$/ d; # skip not target blocks
|
||||||
/^${prefix_pat}/,/^$/! d; # skip anything user dont want
|
/^${prefix_pat}/,/^$/! d; # skip anything user dont want
|
||||||
|
|
||||||
# The stuff above here describes lines that are not
|
# The stuff above here describes lines that are not
|
||||||
@ -29,7 +29,7 @@ function _make_target_extract_script()
|
|||||||
# The stuff below here decides whether an explicit target
|
# The stuff below here decides whether an explicit target
|
||||||
# should be output.
|
# should be output.
|
||||||
|
|
||||||
/^# File is an intermediate prerequisite/ {
|
/^# * File is an intermediate prerequisite/ {
|
||||||
s/^.*$//;x; # unhold target
|
s/^.*$//;x; # unhold target
|
||||||
d; # delete line
|
d; # delete line
|
||||||
}
|
}
|
||||||
|
6
test/fixtures/make/Makefile
vendored
6
test/fixtures/make/Makefile
vendored
@ -6,8 +6,10 @@ NAME := sample
|
|||||||
.PHONY: all
|
.PHONY: all
|
||||||
all: $(NAME)
|
all: $(NAME)
|
||||||
|
|
||||||
$(NAME): sample.c
|
$(NAME): sample.o
|
||||||
cc -o $@ $^
|
|
||||||
|
.INTERMEDIATE: sample.o
|
||||||
|
sample.o: sample.c
|
||||||
|
|
||||||
.PHONY: install
|
.PHONY: install
|
||||||
install: all
|
install: all
|
||||||
|
Loading…
x
Reference in New Issue
Block a user