Skip to content

Commit c2fdc23

Browse files
committed
Fix creating _dist_<goal> targets under !dist
I had initially thought that we would have created the rule when marking it as PHONY, but that's apparently not the case. Bug: 117463001 Test: m test-art-host-gtest Change-Id: I5e397423dfb138725db0e3e07b2630f8e872bb12
1 parent b519ed5 commit c2fdc23

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: packaging/distdir.mk

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ $(foreach pair,$(DIST_GOAL_OUTPUT_PAIRS), \
2424
$(eval output := $(call word-colon,2,$(pair))) \
2525
$(eval .PHONY: _dist_$$(goal)) \
2626
$(if $(call streq,$(DIST),true),\
27-
$(eval _dist_$$(goal): $$(DIST_DIR)/$$(output))))
27+
$(eval _dist_$$(goal): $$(DIST_DIR)/$$(output)), \
28+
$(eval _dist_$$(goal):)))
2829

2930
define copy-one-dist-file
3031
$(2): $(1)

0 commit comments

Comments
 (0)