Merge lp:~abentley/launchpad/makefile-tweak into lp:launchpad
| Status: | Merged |
|---|---|
| Approved by: | Aaron Bentley on 2012-08-29 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 15878 |
| Proposed branch: | lp:~abentley/launchpad/makefile-tweak |
| Merge into: | lp:launchpad |
| Diff against target: |
26 lines (+6/-3) 1 file modified
Makefile (+6/-3) |
| To merge this branch: | bzr merge lp:~abentley/launchpad/makefile-tweak |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Richard Harding (community) | 2012-08-29 | Approve on 2012-08-29 | |
|
Review via email:
|
|||
Commit Message
Tweak Makefile rules for JS.
Description of the Change
= Summary =
Tweak makefile rules to run fewer cp commands.
== Proposed fix ==
Use a pattern rule, instead of an overkill rule, to copy files from lib/canonical/
== Pre-implementation notes ==
Discussed with rick_h
== LOC Rationale ==
Part of private projects.
== Implementation details ==
The existing rule to copy the YUI 2.7 files would copy all YUI 2.7 files for each file in JS_YUI (which included many non 2.7 files).
The new rule is triggered only on YUI 2.7 files, and only copies one file at a time. (Consequently, it has to ensure the directory exists, first.)
As a driveby, I cleaned up a long line at 206.
== Tests ==
None
== Demo and Q/A ==
None
= Launchpad lint =
Checking for conflicts and issues in changed files.
Linting changed files:
Makefile

Thanks for fixing up my usage Aaron!