]> git.proxmox.com Git - libarchive-perl.git/blobdiff - Makefile
buildsys: avoid no-pre-clean flag when building DSC
[libarchive-perl.git] / Makefile
index 5e374afd2c79acd309fc6a0f33faeed1e4b9ce2f..184c53187c51a46e89a646a407994c249d83d614 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -36,7 +36,7 @@ dsc:
        lintian $(DSC)
 
 $(DSC): $(BUILDSRC)
-       cd $(BUILDSRC); dpkg-buildpackage -S -us -uc -d -nc
+       cd $(BUILDSRC); dpkg-buildpackage -S -us -uc -d
 
 .PHONY: sbuild
 sbuild: $(DSC)
@@ -49,16 +49,15 @@ $(DEB): $(PPSRC)/LibArchive.xs $(BUILDSRC)
        cd $(BUILDSRC); dpkg-buildpackage -b -us -uc
        lintian $(DEB) $(DBG_DEB)
 
-.phony: upload
+.PHONY: upload
 upload: UPLOAD_DIST ?= $(DEB_DISTRIBUTION)
 upload: $(DEB) $(DBG_DEB)
        tar cf - $(DEB) $(DBG_DEB) | ssh -X repoman@repo.proxmox.com -- upload --product pmg --dist $(UPLOAD_DIST)
 
-CLEANFILES = *~ build *.deb libarchive_* libarchive-perl_* $(BUILDSRC) *.buildinfo *.build *.dsc *tar.?z
-
-.phony: clean
+.PHONY: clean
 clean:
-       rm -rf $(CLEANFILES)
+       rm -rf build $(PACKAGE)-[0-9]*/
+       rm -f *.deb *.buildinfo *.build *.dsc *.changes $(PACKAGE)*tar*
 
 .PHONY: dinstall
 dinstall: $(DEB)