From: Fabian Grünbichler Date: Fri, 30 Sep 2016 07:44:37 +0000 (+0200) Subject: make sure submodule is initialized X-Git-Url: https://git.proxmox.com/?p=smartmontools.git;a=commitdiff_plain;h=de2ea71432806facea20aef635d68fc4dd7f3017 make sure submodule is initialized --- diff --git a/Makefile b/Makefile index bcae4d2..2b74d16 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ DEB=${PACKAGE}_${VER}-${DEBREL}_${ARCH}.deb all: ${DEB} echo ${DEB} -deb ${DEB}: ${SRCDIR} +deb ${DEB}: submodule rm -rf ${SRCDIR}.tmp cp -rpa ${SRCDIR} ${SRCDIR}.tmp cd ${SRCDIR}.tmp; patch -p1 < ../patches/update_changelog.patch @@ -22,9 +22,14 @@ deb ${DEB}: ${SRCDIR} lintian ${DEB} echo ${DEB} +# make sure submodule was initialized +.PHONY: submodule +submodule: + test -f "${SRCDIR}/debian/changelog" || git submodule update --init + +# upgrade to current master .PHONY: download -download ${SRCDIR}: - git submodule update --init +download ${SRCDIR}: submodule cd ${SRCDIR}; git fetch cd ${SRCDIR}; git merge --ff-only master