Merge lp:~benji/charmworld/makefile-tweaks into lp:~juju-jitsu/charmworld/trunk
Status: | Merged |
---|---|
Approved by: | Benji York |
Approved revision: | 352 |
Merged at revision: | 382 |
Proposed branch: | lp:~benji/charmworld/makefile-tweaks |
Merge into: | lp:~juju-jitsu/charmworld/trunk |
Diff against target: |
210 lines (+71/-47) 1 file modified
Makefile (+71/-47) |
To merge this branch: | bzr merge lp:~benji/charmworld/makefile-tweaks |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Brad Crittenden (community) | code | Approve | |
Review via email: mp+184105@code.launchpad.net |
Commit message
Several tweaks to the Makefile:
- added a debugging tool at the top (normally commented out)
- removed some single-use and tiny constants in favor of less indirection
- added "canaries" to several rules so they are only run when needed
- wrapped long lines
- added a dependency on requirements.txt so that changes will trigger a
re-install of Python dependencies
- made a test script (bin/test) so we don't have to remember the
spelling to invoke the tests outside of the Makefile (preserving the
existing make targets for continuity, especially for CI)
- removed some unnecessary phoney entries
- added "install" as the default goal
- removed unneeded indirection in phoney definition
As a result of the above you can run just "make" in a new checkout and
everything will be built. If "make" is run again, no work will be
done. There is also now a bin/test script that is friendlier than
having to remember the spelling to invoke the test runner (directly or
through the Makefile, but that still works too).
Description of the change
Several tweaks to the Makefile:
- added a debugging tool at the top (normally commented out)
- removed some single-use and tiny constants in favor of less indirection
- added "canaries" to several rules so they are only run when needed
- wrapped long lines
- added a dependency on requirements.txt so that changes will trigger a
re-install of Python dependencies
- made a test script (bin/test) so we don't have to remember the
spelling to invoke the tests outside of the Makefile (preserving the
existing make targets for continuity, especially for CI)
- removed some unnecessary phoney entries
- added "install" as the default goal
- removed unneeded indirection in phoney definition
As a result of the above you can run just "make" in a new checkout and
everything will be built. If "make" is run again, no work will be
done. There is also now a bin/test script that is friendlier than
having to remember the spelling to invoke the test runner (directly or
through the Makefile, but that still works too).
Thanks, this behaves much nicer and with bin/test i can get rid of my ./tr.sh script! :)
Do you know how the charmworld charm invokes make for production? I see 'install' depends on 'develop' ... is that appropriate for the production environment?