~exsdev/landscape-client-charm/juju-app-annotator

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Christopher Glass
  • Date: 2014-08-15 17:07:39 UTC
  • mfrom: (40.1.3 add-sync-makefile-target)
  • Revision ID: christopher.glass@canonical.com-20140815170739-p7fsr5reynjrpfll
Merge lp:~tribaal/charms/trusty/landscape-client/add-sync-makefile-target [r=ack, dpb]

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make
 
2
PYTHON := /usr/bin/env python
 
3
SYNC_SCRIPT := bin/charm_helpers_sync.py
 
4
CONFIG := charm-helpers-sync.yaml
 
5
 
1
6
test:
2
7
        cd hooks && trial test_hooks.py
3
8
 
4
9
lint:
5
10
        bzr ls-lint
 
11
 
 
12
$(SYNC_SCRIPT):
 
13
        @mkdir -p bin
 
14
        @bzr cat lp:charm-helpers/tools/charm_helpers_sync/charm_helpers_sync.py \
 
15
        > $(SYNC_SCRIPT)
 
16
 
 
17
# Note: The target name is unfortunate, but that's what other charms use.
 
18
sync: $(SYNC_SCRIPT)
 
19
        @$(PYTHON) $(SYNC_SCRIPT) -c $(CONFIG)