]> git.proxmox.com Git - smartmontools.git/blob - Makefile
remove temp dir before copying
[smartmontools.git] / Makefile
1 RELEASE=4.3
2
3 PACKAGE=smartmontools
4 VER=6.5+svn4324
5 DEBREL=1~pve80
6
7 SRCDIR=upstream
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 deb ${DEB}: ${SRCDIR}
18 rm -rf ${SRCDIR}.tmp
19 cp -rpa ${SRCDIR} ${SRCDIR}.tmp
20 cd ${SRCDIR}.tmp; patch -p1 < ../patches/update_changelog.patch
21 cd ${SRCDIR}.tmp; dpkg-buildpackage -rfakeroot -b -uc -us
22 lintian ${DEB}
23 echo ${DEB}
24
25 .PHONY: download
26 download ${SRCDIR}:
27 git submodule update --init
28 cd ${SRCDIR}; git fetch
29 cd ${SRCDIR}; git merge --ff-only master
30
31 .PHONY: upload
32 upload: ${DEB}
33 tar cf - ${DEB} | ssh repoman@repo.proxmox.com upload
34
35 distclean: clean
36
37 .PHONY: clean
38 clean:
39 rm -rf ${SRCDIR}.tmp *_${ARCH}.deb *.changes *.dsc
40 find . -name '*~' -exec rm {} ';'
41
42 .PHONY: dinstall
43 dinstall: ${DEB}
44 dpkg -i ${DEB}