]>
Commit | Line | Data |
---|---|---|
822e3a69 | 1 | VERSION=1.0 |
6cbcb5f7 | 2 | PACKAGE=pve-ha-manager |
c0a900cc | 3 | SIMPACKAGE=pve-ha-simulator |
c791d525 | 4 | PKGREL=39 |
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 | ||
c0a900cc | 14 | all: ${DEB} ${SIMDEB} |
6cbcb5f7 | 15 | |
c0a900cc DM |
16 | .PHONY: dinstall simdeb |
17 | dinstall: deb simdeb | |
18 | dpkg -i ${DEB} ${SIMDEB} | |
6cbcb5f7 | 19 | |
c0a900cc DM |
20 | |
21 | .PHONY: simdeb ${SIMDEB} | |
22 | simdeb ${SIMDEB}: | |
23 | rm -rf build | |
24 | mkdir build | |
ba878e35 DM |
25 | rsync -a src/ build |
26 | rsync -a simdebian/ build/debian | |
27 | cp changelog.Debian build/debian/changelog | |
28 | echo "git clone git://git.proxmox.com/git/pve-ha-manager.git\\ngit checkout ${GITVERSION}" > build/debian/SOURCE | |
29 | cd build; dpkg-buildpackage -rfakeroot -b -us -uc | |
c0a900cc | 30 | lintian ${SIMDEB} |
6cbcb5f7 DM |
31 | |
32 | .PHONY: deb ${DEB} | |
33 | deb ${DEB}: | |
34 | rm -rf build | |
35 | mkdir build | |
ba878e35 DM |
36 | rsync -a src/ build |
37 | rsync -a debian/ build/debian | |
38 | cp changelog.Debian build/debian/changelog | |
39 | echo "git clone git://git.proxmox.com/git/pve-ha-manager.git\\ngit checkout ${GITVERSION}" > build/debian/SOURCE | |
40 | cd build; dpkg-buildpackage -rfakeroot -b -us -uc | |
6cbcb5f7 | 41 | lintian ${DEB} |
3a1c66d6 | 42 | |
f501f7e3 | 43 | .PHONY: clean |
ba878e35 | 44 | clean: |
8cb12b9e | 45 | make -C src clean |
ba878e35 | 46 | rm -rf build *.deb ${PACKAGE}-*.tar.gz *.changes |
6cbcb5f7 DM |
47 | find . -name '*~' -exec rm {} ';' |
48 | ||
49 | .PHONY: distclean | |
50 | distclean: clean | |
f501f7e3 | 51 | |
952a637d DM |
52 | .PHONY: upload |
53 | upload: ${DEB} ${SIMDEB} | |
8a126e58 | 54 | tar cf - ${DEB} ${SIMDEB}|ssh repoman@repo.proxmox.com upload |
952a637d | 55 |