RELEASE=4.3 PACKAGE=smartmontools VER=6.5+svn4324 DEBREL=1~pve80 SRCDIR=upstream ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH) GITVERSION:=$(shell cat .git/refs/heads/master) DEB=${PACKAGE}_${VER}-${DEBREL}_${ARCH}.deb all: ${DEB} echo ${DEB} deb ${DEB}: ${SRCDIR} cp -rpa ${SRCDIR} ${SRCDIR}.tmp cd ${SRCDIR}.tmp; patch -p1 < ../patches/update_changelog.patch cd ${SRCDIR}.tmp; dpkg-buildpackage -rfakeroot -b -uc -us lintian ${DEB} echo ${DEB} .PHONY: download download ${SRCDIR}: git submodule update --init cd ${SRCDIR}; git fetch cd ${SRCDIR}; git merge --ff-only master .PHONY: upload upload: ${DEB} tar cf - ${DEB} | ssh repoman@repo.proxmox.com upload distclean: clean .PHONY: clean clean: rm -rf ${SRCDIR}.tmp *_${ARCH}.deb *.changes *.dsc find . -name '*~' -exec rm {} ';' .PHONY: dinstall dinstall: ${DEB} dpkg -i ${DEB}