]> git.proxmox.com Git - pve-network.git/blobdiff - Makefile
bump version to 0.9.8
[pve-network.git] / Makefile
index b4980de2d3416ed7e427ca97d60e969199afc556..3de2ff0841048da5bc2621313683b29970465e72 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -7,17 +7,18 @@ BUILDDIR ?= $(PACKAGE)-$(DEB_VERSION_UPSTREAM)
 DEB=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION)_all.deb
 DSC=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION).dsc
 
-all:
-       $(MAKE) -C PVE
+all: deb
 
 .PHONY: dinstall
 dinstall: deb
        dpkg -i $(DEB)
 
-$(BUILDDIR): PVE debian
-       rm -rf $(BUILDDIR)
-       rsync -a * $(BUILDDIR)
-       echo "git clone git://git.proxmox.com/git/pve-network.git\\ngit checkout $(shell git rev-parse HEAD)" > $(BUILDDIR)/debian/SOURCE
+$(BUILDDIR): src debian
+       rm -rf $@ $@.tmp
+       cp -a src $@.tmp
+       cp -a debian $@.tmp/
+       echo "git clone git://git.proxmox.com/git/pve-network.git\\ngit checkout $(shell git rev-parse HEAD)" > $@.tmp/debian/SOURCE
+       mv $@.tmp $@
 
 .PHONY: deb
 deb: $(DEB)
@@ -41,14 +42,7 @@ distclean: clean
 clean:
        rm -rf *~ *.deb *.changes $(PACKAGE)-[0-9]*/ $(PACKAGE)*.tar* *.build *.buildinfo *.dsc
 
-.PHONY: test
-test:
-       $(MAKE) -C test
-
-.PHONY: install
-install:
-       $(MAKE) -C PVE install
-
 .PHONY: upload
+upload: UPLOAD_DIST ?= $(DEB_DISTRIBUTION)
 upload: $(DEB)
-       tar cf - $(DEB)|ssh -X repoman@repo.proxmox.com -- upload --product pve --dist bullseye
+       tar cf - $(DEB)|ssh -X repoman@repo.proxmox.com -- upload --product pve --dist $(UPLOAD_DIST)