]> git.proxmox.com Git - smartmontools.git/blame - Makefile
bump version to 7.2-pve1
[smartmontools.git] / Makefile
CommitLineData
bd4e7d8b 1PACKAGE=smartmontools
0b1c3f74
TL
2VER=7.2
3DEBREL=pve1
bd4e7d8b 4
6eeaeb72 5SRCDIR=smartmontools
bd4e7d8b
FG
6
7ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
8GITVERSION:=$(shell cat .git/refs/heads/master)
9
10DEB=${PACKAGE}_${VER}-${DEBREL}_${ARCH}.deb
11
12all: ${DEB}
e923c21a 13 @echo ${DEB}
bd4e7d8b 14
e923c21a 15.PHONY: deb
4226ccbc 16deb ${DEB}: | submodule
b5191b6c 17 rm -rf ${SRCDIR}.tmp
bd4e7d8b 18 cp -rpa ${SRCDIR} ${SRCDIR}.tmp
5ecb432b 19 rm -rf ${SRCDIR}.tmp/.git
bd4e7d8b 20 cd ${SRCDIR}.tmp; patch -p1 < ../patches/update_changelog.patch
1999e040
FG
21 echo "git clone git://git.proxmox.com/git/smartmontools.git\\ngit checkout ${GITVERSION}" > ${SRCDIR}.tmp/debian/SOURCE
22 echo "debian/SOURCE" >> ${SRCDIR}.tmp/debian/docs
bd4e7d8b
FG
23 cd ${SRCDIR}.tmp; dpkg-buildpackage -rfakeroot -b -uc -us
24 lintian ${DEB}
bd4e7d8b 25
de2ea714
FG
26# make sure submodule was initialized
27.PHONY: submodule
28submodule:
29 test -f "${SRCDIR}/debian/changelog" || git submodule update --init
30
31# upgrade to current master
bd4e7d8b 32.PHONY: download
de2ea714 33download ${SRCDIR}: submodule
5a07fa8c 34 git submodule foreach 'git pull --ff-only origin master'
bd4e7d8b
FG
35
36.PHONY: upload
37upload: ${DEB}
38 tar cf - ${DEB} | ssh repoman@repo.proxmox.com upload
39
40distclean: clean
41
42.PHONY: clean
43clean:
da445967 44 rm -rf ${SRCDIR}.tmp *_${ARCH}.deb *.changes *.dsc *.buildinfo
bd4e7d8b
FG
45 find . -name '*~' -exec rm {} ';'
46
47.PHONY: dinstall
48dinstall: ${DEB}
49 dpkg -i ${DEB}