]> git.proxmox.com Git - corosync-pve.git/blobdiff - Makefile
buildsys: fix source tarball generation directory level one-off
[corosync-pve.git] / Makefile
index 1dd0eef6121351c4c4b3e27229e7789f41b4281d..c35b1a9e32b00ae898d5ed557884cc35a21d3825 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -60,7 +60,7 @@ $(MAIN_DEB): $(BUILDDIR)
        cd $(BUILDDIR); dpkg-buildpackage -b -us -uc
 
 $(ORIG_SRC_TAR): $(BUILDDIR)
-       tar czf $(ORIG_SRC_TAR) -C $(BUILDDIR) .
+       tar czf $(ORIG_SRC_TAR) --exclude="$(BUILDDIR)/debian" $(BUILDDIR)
 
 .PHONY: dsc
 dsc: $(DSC)
@@ -68,6 +68,9 @@ $(DSC): $(ORIG_SRC_TAR) $(BUILDDIR)
        cd $(BUILDDIR); dpkg-buildpackage -S -us -uc -d
        lintian $(DSC)
 
+sbuild: $(DSC)
+       sbuild $(DSC)
+
 .PHONY: submodule
 submodule:
        test -f "$(CSSRC)/INSTALL" || git submodule update --init $(CSSRC)
@@ -80,8 +83,7 @@ upload: $(DEBS)
 .PHONY: clean
 distclean: clean
 clean:
-       rm -rf *.deb *.changes *.dsc *.buildinfo $(BUILDDIR)
-       find . -name '*~' -exec rm () ';'
+       rm -rf *.deb *.changes *.dsc *.buildinfo *.build $(PACKAGE)-[0-9]*/ *.tar.?z
 
 .PHONY: dinstall
 dinstall: $(DEBS)