Merge "Enable ceilometer collectd"
[fuel.git] / build / f_isoroot / f_collectd-ceilometer-pluginbuild / Makefile
index 9ab922d..bb4b19c 100644 (file)
@@ -19,34 +19,35 @@ include config.mk
 #############################################################################
 
 .PHONY: all
-all: .fastpathmetrics
+all: .barometer
 
 .PHONY: clean
 clean:
-       @rm -f .fastpathmetrics ../release/opnfv/fuel-plugin-collectd-ceilometer-*.rpm fuel-plugin-collectd-ceilometer-*.rpm
+       @rm -f .barometer ../release/opnfv/fuel-plugin-collectd-ceilometer-*.rpm fuel-plugin-collectd-ceilometer-*.rpm
        @rm -f $(BUILD_BASE)/gitinfo_collectd-ceilometer-plugin.txt gitinfo_collectd-ceilometer-plugin.txt
 
 .PHONY: release
-release:.fastpathmetrics
+release:.barometer
        @rm -f ../release/opnfv/fuel-plugin-collectd-ceilometer-*.rpm
        @mkdir -p ../release/opnfv
        @cp fuel-plugin-collectd-ceilometer*.rpm ../release/opnfv/
        cp gitinfo_collectd-ceilometer-plugin.txt $(BUILD_BASE)
 
-.fastpathmetrics:
-       @rm -rf fastpathmetrics
+.barometer:
+       @rm -rf barometer
+       ../../docker/ubuntu-builder/install_docker.sh
        git clone $(COLLECTD_CEILOMETER_REPO)
-       cd fastpathmetrics; \
+       cd barometer; \
        git checkout $(COLLECTD_CEILOMETER_BRANCH); \
        if [ ! -z $(COLLECTD_CEILOMETER_CHANGE) ]; then \
           git fetch $(COLLECTD_CEILOMETER_REPO) $(COLLECTD_CEILOMETER_CHANGE); \
           git checkout FETCH_HEAD; \
        fi
-       fpb --debug --build fastpathmetrics/src/fuel-plugin
-       @mv fastpathmetrics/src/fuel-plugin/fuel-plugin-collectd-ceilometer*.rpm .
+       fpb --debug --build barometer/src/fuel-plugin
+       @mv barometer/src/fuel-plugin/fuel-plugin-collectd-ceilometer*.rpm .
        $(REPOINFO) -r . > gitinfo_collectd-ceilometer-plugin.txt
-       @rm -rf fastpathmetrics
-       @touch .fastpathmetrics
+       @rm -rf barometer
+       @touch .barometer
        # Store artifact in cache straight away if caching is enabled
        # (no .cacheid will be present unless this is a cached build)
        test -f .cacheid && $(MAKE) -f Makefile put-cache || exit 0
@@ -67,6 +68,7 @@ release:.fastpathmetrics
        fi
        @sha1sum Makefile | awk {'print $$1'} >> .cachedata
        @sha1sum config.mk | awk {'print $$1'} >> .cachedata
+       @echo -n $(UBUNTU_ARCH) | sha1sum | awk {'print $$1'} >> .cachedata
        @cat .cachedata | $(CACHETOOL) getid > .cacheid
 
 # Clean local data related to caching - called prior to ordinary build
@@ -87,4 +89,4 @@ get-cache: .cacheid
 # Store cache if not already stored - called after ordinary build
 .PHONY: put-cache
 put-cache: .cacheid
-       @tar cf - .fastpathmetrics fuel-plugin-collectd-ceilometer*.rpm gitinfo_collectd-ceilometer-plugin.txt | $(CACHETOOL) put $(shell cat .cacheid)
+       @tar cf - .barometer fuel-plugin-collectd-ceilometer*.rpm gitinfo_collectd-ceilometer-plugin.txt | $(CACHETOOL) put $(shell cat .cacheid)