2
SOURCEDEPS_DIR ?= $(shell dirname $(PWD))/.sourcecode
3
PYTHON := /usr/bin/env python
4
CONFIGMANAGER := $(PWD)/bin/cm.py
7
sourcedeps: $(PWD)/config-manager.txt clean
8
@echo Updating source dependencies...
9
@$(PYTHON) cm.py -c $(PWD)/config-manager.txt \
10
-p $(SOURCEDEPS_DIR) \
12
@$(PYTHON) build/charm-helpers/tools/charm_helpers_sync/charm_helpers_sync.py \
13
-c charm-helpers.yaml \
14
-b build/charm-helpers \
16
@echo Do not forget to commit the updated files if any.
17
#@cd $(PWD)/build/charm-helpers; \
18
#@$(PYTHON) setup.py install --install-purelib=$(PWD)/lib \
19
#--install-scripts=$(PWD)/lib/bin
22
rm -fr hooks/charmhelpers build/charm-helpers ../.sourcecode