]>
Commit | Line | Data |
---|---|---|
f9b7a596 | 1 | VERSION=2.0 |
6cbcb5f7 | 2 | PACKAGE=pve-ha-manager |
c0a900cc | 3 | SIMPACKAGE=pve-ha-simulator |
b340ba63 | 4 | PKGREL=3 |
3a1c66d6 | 5 | |
ba878e35 | 6 | GITVERSION:=$(shell cat .git/refs/heads/master) |
3a1c66d6 | 7 | |
ac2039e8 | 8 | ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH) |
6cbcb5f7 DM |
9 | |
10 | DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb | |
ac2039e8 | 11 | SIMDEB=${SIMPACKAGE}_${VERSION}-${PKGREL}_all.deb |
6cbcb5f7 DM |
12 | |
13 | ||
5ff407da | 14 | all: deb |
6cbcb5f7 | 15 | |
c0a900cc | 16 | .PHONY: dinstall simdeb |
fea8212c | 17 | dinstall: $(DEB) $(SIMDEB) |
c0a900cc | 18 | dpkg -i ${DEB} ${SIMDEB} |
6cbcb5f7 | 19 | |
c0a900cc | 20 | |
fea8212c WB |
21 | .PHONY: simdeb |
22 | simdeb: ${SIMDEB} | |
23 | ${SIMDEB}: | |
c0a900cc DM |
24 | rm -rf build |
25 | mkdir build | |
ba878e35 DM |
26 | rsync -a src/ build |
27 | rsync -a simdebian/ build/debian | |
28 | cp changelog.Debian build/debian/changelog | |
29 | echo "git clone git://git.proxmox.com/git/pve-ha-manager.git\\ngit checkout ${GITVERSION}" > build/debian/SOURCE | |
30 | cd build; dpkg-buildpackage -rfakeroot -b -us -uc | |
c0a900cc | 31 | lintian ${SIMDEB} |
6cbcb5f7 | 32 | |
fea8212c | 33 | .PHONY: deb |
5ff407da | 34 | deb: ${DEB} ${SIMDEB} |
fea8212c | 35 | ${DEB}: |
6cbcb5f7 DM |
36 | rm -rf build |
37 | mkdir build | |
ba878e35 DM |
38 | rsync -a src/ build |
39 | rsync -a debian/ build/debian | |
40 | cp changelog.Debian build/debian/changelog | |
41 | echo "git clone git://git.proxmox.com/git/pve-ha-manager.git\\ngit checkout ${GITVERSION}" > build/debian/SOURCE | |
42 | cd build; dpkg-buildpackage -rfakeroot -b -us -uc | |
6cbcb5f7 | 43 | lintian ${DEB} |
3a1c66d6 | 44 | |
f501f7e3 | 45 | .PHONY: clean |
ba878e35 | 46 | clean: |
8cb12b9e | 47 | make -C src clean |
ba878e35 | 48 | rm -rf build *.deb ${PACKAGE}-*.tar.gz *.changes |
6cbcb5f7 DM |
49 | find . -name '*~' -exec rm {} ';' |
50 | ||
51 | .PHONY: distclean | |
52 | distclean: clean | |
f501f7e3 | 53 | |
952a637d DM |
54 | .PHONY: upload |
55 | upload: ${DEB} ${SIMDEB} | |
4a70da7d | 56 | tar cf - ${DEB} ${SIMDEB}|ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH} |
952a637d | 57 |