From: Thomas Lamprecht Date: Tue, 19 Jun 2018 08:54:05 +0000 (+0200) Subject: buildsys: refactor and clean makefile X-Git-Url: https://git.proxmox.com/?p=iproute2.git;a=commitdiff_plain;h=dc9d6863c80699c8bc99a22c66168c3b45603f66 buildsys: refactor and clean makefile --- diff --git a/Makefile b/Makefile index 82e80fa..6506e28 100644 --- a/Makefile +++ b/Makefile @@ -20,21 +20,17 @@ submodule: .PHONY: deb ${DEBS} deb: | submodule - rm -f *.deb rm -rf $(BUILDDIR) - mkdir $(BUILDDIR) - cp -a $(SRCDIR)/* $(BUILDDIR)/ - cp -R debian $(BUILDDIR)/ + cp -a $(SRCDIR) $(BUILDDIR) + cp -a debian $(BUILDDIR)/debian cd ${BUILDDIR}; dpkg-buildpackage -rfakeroot -b -uc -us .PHONY: upload upload: ${DEBS} tar cf - ${DEBS} | ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH} -.PHONY: distclean +.PHONY: clean distclean distclean: clean - -.PHONY: clean clean: rm -rf ${BUILDDIR} *.deb *.changes *.dsc *.buildinfo