Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
export VERSION=$(DEB_VERSION_UPSTREAM)
DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_${DEB_BUILD_ARCH}.deb
+DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
-.PHONY: deb
-deb: ${DEB}
-${DEB}:
+${BUILDDIR}: src/ debian/
rm -rf $(BUILDDIR)
rsync -a src/ debian $(BUILDDIR)
echo "git clone git://git.proxmox.com/git/spiceterm.git\\ngit checkout ${GITVERSION}" > $(BUILDDIR)/debian/SOURCE
+
+.PHONY: dsc
+dsc: ${DSC}
+${DSC}: $(BUILDDIR)
+ cd $(BUILDDIR); dpkg-buildpackage -S -us -uc -d
+ lintian ${DSC}
+
+.PHONY: deb
+deb: ${DEB}
+${DEB}: $(BUILDDIR)
cd $(BUILDDIR); dpkg-buildpackage -b -us -uc
lintian ${DEB}
.PHONY: distclean clean
distclean: clean
clean:
- rm -rf *~ $(BUILDDIR) *.deb *.changes genfont *.buildinfo
+ rm -rf *~ $(BUILDDIR) *.deb *.changes genfont *.buildinfo *.dsc *.tar.gz