Merge "Mark implicit rules as obsolete" am: e82b12cb09

am: abc350d8b2

Change-Id: I1ec3406c1c69a8a977deb26755ba7ef47f26e54c
This commit is contained in:
Dan Willemsen
2018-06-22 10:23:40 -07:00
committed by android-build-merger

View File

@@ -50,7 +50,7 @@ $(intermediates)/generated_output.img: $(envsh) a/b/c/package.sh
source $(PRIVATE_ENV); a/b/c/package.sh ...
```
## Implicit make rules are deprecated {#implicit_rules}
## Implicit make rules are obsolete {#implicit_rules}
Implicit rules look something like the following:
@@ -62,7 +62,7 @@ $(TARGET_OUT_SHARED_LIBRARIES)/%_vendor.so: $(TARGET_OUT_SHARED_LIBRARIES)/%.so
...
```
These can have wide ranging effects across unrelated modules, so they're now deprecated. Instead, use static pattern rules, which are similar, but explicitly match the specified outputs:
These can have wide ranging effects across unrelated modules, so they're now obsolete. Instead, use static pattern rules, which are similar, but explicitly match the specified outputs:
``` make
libs := $(foreach lib,libfoo libbar,$(TARGET_OUT_SHARED_LIBRARIES)/$(lib)_vendor.so)