-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.install-package
50 lines (36 loc) · 1.18 KB
/
Makefile.install-package
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
SRC_VER := $(shell cat ./controller/src/base/version.info)
BUILDNUM ?= $(shell date -u +%m%d%Y)
export BUILDTAG ?= $(SRC_VER)-$(BUILDNUM)
vijava-deb:
(cd vijava && make deb)
java-api-deb:
(cd java-api && make deb)
vrouter-java-api-deb:
(cd vrouter-java-api && make deb)
vcenter-plugin-deb:
(cd vcenter-plugin && make deb)
vijava-rpm:
(cd vijava && make rpm)
java-api-rpm:
(cd java-api && make rpm)
vrouter-java-api-rpm:
(cd vrouter-java-api && make rpm)
vcenter-plugin-rpm:
(cd vcenter-plugin && make rpm)
install-package-deb:
$(eval BUILDDIR=./build/packages)
mkdir -p ${BUILDDIR}
cp -ar vcenter-plugin/packages/* ${BUILDDIR}
(cd ${BUILDDIR}; debuild --preserve-envvar=BUILDTAG -i -us -uc -b)
@echo "Wrote: build/contrail-vcenter-plugin_all.deb"
clean-install-package:
$(eval BUILDDIR=./build/packages)
rm -rf ${BUILDDIR}
rm -rf ./build/contrail-install-vcenter-plugin*.*
clean: clean-install-package
(cd vijava && make clean)
(cd java-api && make clean)
(cd vrouter-java-api make clean)
(cd vcenter-plugin make clean)
all: vijava-deb java-api-deb vrouter-java-api-deb vcenter-plugin-deb install-package-deb
rpm: vijava-rpm java-api-rpm vrouter-java-api-rpm vcenter-plugin-rpm