Updates docs for SR1 with final revision
[genesis.git] / fuel / build / f_isoroot / f_odlpluginbuild / Makefile
1 ##############################################################################
2 # Copyright (c) 2015 Ericsson AB and others.
3 # mskalski@mirantis.com
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9
10 TOP := $(shell pwd)
11 DOCKNAME = fuelrepo
12 DOCKVERSION = 1.0
13 ODL_BRANCH="juno/lithium-sr1"
14 ODL_REPO="https://github.com/stackforge/fuel-plugin-opendaylight.git"
15
16 .PHONY: all
17 all: .odlbuild
18
19 .PHONY: clean
20 clean:
21         # Deliberately not cleaning nailgun directory to speed up multiple builds
22         @rm -f ../release/opnfv/opendaylight*.rpm
23
24 .PHONY: release
25 release:.odlbuild
26         @rm -f ../release/opnfv/opendaylight*.rpm
27         @mkdir -p ../release/opnfv
28         @cp  opendaylight*.rpm ../release/opnfv/
29
30 .odlbuild:
31         rm -rf fuel-plugin-opendaylight
32         sudo apt-get -y install build-essential ruby-dev rubygems-integration python-pip git rpm createrepo dpkg-dev
33         sudo gem install fpm
34         sudo pip install fuel-plugin-builder
35         git clone -b ${ODL_BRANCH} ${ODL_REPO}
36         INCLUDE_DEPENDENCIES=true fpb --debug --build fuel-plugin-opendaylight/
37         mv fuel-plugin-opendaylight/opendaylight*.rpm .
38         rm -rf fuel-plugin-opendaylight