]> git.proxmox.com Git - smartmontools.git/blame - Makefile
make sure submodule is initialized
[smartmontools.git] / Makefile
CommitLineData
bd4e7d8b
FG
1RELEASE=4.3
2
3PACKAGE=smartmontools
4VER=6.5+svn4324
5DEBREL=1~pve80
6
7SRCDIR=upstream
8
9ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
10GITVERSION:=$(shell cat .git/refs/heads/master)
11
12DEB=${PACKAGE}_${VER}-${DEBREL}_${ARCH}.deb
13
14all: ${DEB}
15 echo ${DEB}
16
de2ea714 17deb ${DEB}: submodule
b5191b6c 18 rm -rf ${SRCDIR}.tmp
bd4e7d8b
FG
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
de2ea714
FG
25# make sure submodule was initialized
26.PHONY: submodule
27submodule:
28 test -f "${SRCDIR}/debian/changelog" || git submodule update --init
29
30# upgrade to current master
bd4e7d8b 31.PHONY: download
de2ea714 32download ${SRCDIR}: submodule
bd4e7d8b
FG
33 cd ${SRCDIR}; git fetch
34 cd ${SRCDIR}; git merge --ff-only master
35
36.PHONY: upload
37upload: ${DEB}
38 tar cf - ${DEB} | ssh repoman@repo.proxmox.com upload
39
40distclean: clean
41
42.PHONY: clean
43clean:
44 rm -rf ${SRCDIR}.tmp *_${ARCH}.deb *.changes *.dsc
45 find . -name '*~' -exec rm {} ';'
46
47.PHONY: dinstall
48dinstall: ${DEB}
49 dpkg -i ${DEB}