]> git.proxmox.com Git - smartmontools.git/blob - Makefile
add initial Makefile and changelog patch
[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 cp -rpa ${SRCDIR} ${SRCDIR}.tmp
19 cd ${SRCDIR}.tmp; patch -p1 < ../patches/update_changelog.patch
20 cd ${SRCDIR}.tmp; dpkg-buildpackage -rfakeroot -b -uc -us
21 lintian ${DEB}
22 echo ${DEB}
23
24 .PHONY: download
25 download ${SRCDIR}:
26 git submodule update --init
27 cd ${SRCDIR}; git fetch
28 cd ${SRCDIR}; git merge --ff-only master
29
30 .PHONY: upload
31 upload: ${DEB}
32 tar cf - ${DEB} | ssh repoman@repo.proxmox.com upload
33
34 distclean: clean
35
36 .PHONY: clean
37 clean:
38 rm -rf ${SRCDIR}.tmp *_${ARCH}.deb *.changes *.dsc
39 find . -name '*~' -exec rm {} ';'
40
41 .PHONY: dinstall
42 dinstall: ${DEB}
43 dpkg -i ${DEB}