]> git.proxmox.com Git - pve-qemu.git/blame - Makefile
bump version to 3.0.1-2
[pve-qemu.git] / Makefile
CommitLineData
95259824 1# also update debian/changelog
0775f12b 2KVMVER=3.0.1
64be2e75 3KVMPKGREL=2
95259824
WB
4
5KVMPACKAGE = pve-qemu-kvm
6KVMSRC = qemu
7BUILDSRC = $(KVMSRC).tmp
8
9SRCDIR := qemu
10
11ARCH := $(shell dpkg-architecture -qDEB_BUILD_ARCH)
d2494dd2 12GITVERSION := $(shell git rev-parse HEAD)
95259824
WB
13
14DEB = ${KVMPACKAGE}_${KVMVER}-${KVMPKGREL}_${ARCH}.deb
15DEB_DBG = ${KVMPACKAGE}-dbg_${KVMVER}-${KVMPKGREL}_${ARCH}.deb
16DEBS = $(DEB) $(DEB_DBG)
17
18
19all: $(DEBS)
20
21.PHONY: submodule
22submodule:
23 test -f "${SRCDIR}/debian/changelog" || git submodule update --init
24
25.PHONY: deb kvm
26deb kvm: $(DEBS)
27$(DEB_DBG): $(DEB)
6838f038 28$(DEB): keycodemapdb | submodule
95259824
WB
29 rm -f *.deb
30 rm -rf $(BUILDSRC)
31 mkdir $(BUILDSRC)
32 cp -a $(KVMSRC)/* $(BUILDSRC)/
95259824 33 cp -a debian $(BUILDSRC)/debian
6838f038
WB
34 rm -rf $(BUILDSRC)/ui/keycodemapdb
35 cp -a keycodemapdb $(BUILDSRC)/ui/
55b68722 36 echo "git clone git://git.proxmox.com/git/pve-qemu.git\\ngit checkout $(GITVERSION)" > $(BUILDSRC)/debian/SOURCE
95259824
WB
37 # set package version
38 sed -i 's/^pkgversion="".*/pkgversion="${KVMPACKAGE}_${KVMVER}-${KVMPKGREL}"/' $(BUILDSRC)/configure
4ba321f2 39 cd $(BUILDSRC); dpkg-buildpackage -b -rfakeroot -us -uc -j
95259824
WB
40 lintian $(DEBS) || true
41
6838f038
WB
42.PHONY: update
43update:
44 cd $(KVMSRC) && git submodule deinit ui/keycodemapdb || true
45 rm -rf $(KVMSRC)/ui/keycodemapdb
46 mkdir $(KVMSRC)/ui/keycodemapdb
47 cd $(KVMSRC) && git submodule update --init ui/keycodemapdb
48 rm -rf keycodemapdb
49 mkdir keycodemapdb
50 cp -R $(KVMSRC)/ui/keycodemapdb/* keycodemapdb/
51 git add keycodemapdb
52
95259824
WB
53.PHONY: upload
54upload: $(DEBS)
a544966d 55 tar cf - ${DEBS} | ssh repoman@repo.proxmox.com upload --product pve --dist stretch
95259824
WB
56
57.PHONY: distclean
58distclean: clean
59
60.PHONY: clean
61clean:
62 rm -rf $(BUILDSRC) $(KVMPACKAGE)_* $(DEBS) *.buildinfo
63
64.PHONY: dinstall
65dinstall: $(DEBS)
66 dpkg -i $(DEBS)