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
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