-deb: ${DEB}
-${DEB}: src test debian
- make check
- rm -rf build
- rsync -a src/ build
- rsync -a debian/ build/debian
- echo "git clone git://git.proxmox.com/git/pve-firewall.git\\ngit checkout ${GITVERSION}" > build/debian/SOURCE
- # install
- cd build; dpkg-buildpackage -b -us -uc
- lintian ${DEB}
+deb: $(DEBS)
+$(DEB2): $(DEB)
+$(DEB): ${BUILDDIR} check
+ cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc
+ lintian ${DEBS}
+
+.PHONY: dsc
+dsc: ${DSC}
+${DSC}: ${BUILDDIR}
+ cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d
+ lintian ${DSC}