~canonical-ci-engineering/uci-engine/trunk

« back to all changes in this revision

Viewing changes to charms/precise/chroot-builder/Makefile

  • Committer: Ubuntu CI Bot
  • Author(s): Celso Providelo
  • Date: 2015-01-07 14:33:28 UTC
  • mfrom: (911.1.8 charms-cleanup)
  • Revision ID: ubuntu_ci_bot-20150107143328-q0d037ojtopm3n9d
Removing the charms from UCI-E since they live in isolated branches now and also adjusting the run-tests to stop loading/running charm tests.

Updating local j-d copy to trunk (r126) for proper support for charm branch pinning. [r=Evan Dandrea]

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
PWD := $(shell pwd)
2
 
SOURCEDEPS_DIR ?= $(shell dirname $(PWD))/.sourcecode
3
 
SOURCEBUILD_DIR ?= $(PWD)/build/charm-helpers
4
 
PYTHON := /usr/bin/env python
5
 
CONFIGMANAGER ?= $(PWD)/cm.py
6
 
CONFIGMANAGER_CFG ?= $(PWD)/config-manager.txt
7
 
CHARMHELPERS_INSTALLED=$(SOURCEBUILD_DIR)/charmhelpers-installed-stamp
8
 
 
9
 
all: hooks/charmhelpers
10
 
 
11
 
$(CHARMHELPERS_INSTALLED): $(CONFIGMANAGER_CFG)
12
 
        @echo Running cm...
13
 
        @$(PYTHON) $(CONFIGMANAGER) -c $(CONFIGMANAGER_CFG) \
14
 
                -p $(SOURCEDEPS_DIR) \
15
 
                -t $(PWD)
16
 
        @touch $@
17
 
 
18
 
hooks/charmhelpers: $(CHARMHELPERS_INSTALLED)
19
 
        @echo Updating source dependencies...
20
 
        @$(PYTHON) $(SOURCEBUILD_DIR)/tools/charm_helpers_sync/charm_helpers_sync.py \
21
 
                -c charm-helpers.yaml \
22
 
                -b $(SOURCEBUILD_DIR) \
23
 
                -d hooks/charmhelpers
24
 
 
25
 
clean:
26
 
# Explicitly delete ../.sourcecode rather than SOURCEDEPS_DIR as the latter
27
 
# is outside our control if set to a value other than ../.sourcecode.
28
 
        rm -fr hooks/charmhelpers build/charm-helpers ../.sourcecode $(CHARMHELPERS_INSTALLED)
29
 
 
30
 
.PHONY: clean