.PHONY: clean
clean:
- @rm -f .ovsnfvbuild ../release/opnfv/fuel-plugin-ovsnfv*.rpm fuel-plugin-ovsnfv*.rpm
+ @rm -f .ovsnfvbuild ../release/opnfv/fuel-plugin-ovsnfv-*.rpm fuel-plugin-ovsnfv-*.rpm
@rm -f $(BUILD_BASE)/gitinfo_ovsnfv-dpdk-plugin.txt gitinfo_ovsnfv-dpdk-plugin.txt
.PHONY: release
release:.ovsnfvbuild
- @rm -f ../release/opnfv/fuel-plugin-ovsnfv*.rpm
+ @rm -f ../release/opnfv/fuel-plugin-ovsnfv-*.rpm
@mkdir -p ../release/opnfv
@cp fuel-plugin-ovsnfv*.rpm ../release/opnfv/
cp gitinfo_ovsnfv-dpdk-plugin.txt $(BUILD_BASE)
- cd $(BUILD_BASE) && mkdir -p ../deploy/templates/plugins && cp -rf $(TOP)/config/* ../deploy/templates/plugins
.ovsnfvbuild:
- @rm -rf fuel-plugin-ovsnfv
- sudo apt-get -y install build-essential ruby-dev rubygems-integration python-pip git rpm createrepo dpkg-dev
- sudo pip install fuel-plugin-builder
+ @rm -rf ovsnfv
git clone $(OVSNFV_DPDK_REPO) ovsnfv
cd ovsnfv; \
git checkout $(OVSNFV_DPDK_BRANCH); \
INCLUDE_DEPENDENCIES=true fpb --debug --build $(OVSNFV_DPDK_DIR)
@mv ovsnfv/$(OVSNFV_DPDK_DIR)/fuel-plugin-ovsnfv*.rpm .
$(REPOINFO) -r . > gitinfo_ovsnfv-dpdk-plugin.txt
- @rm -rf fuel-plugin-ovsnfv
+ @rm -rf ovsnfv
@touch .ovsnfvbuild
+ # 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
#############################################################################
# Cache operations - only used when building through ci/build.sh