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