]> git.proxmox.com Git - pve-manager.git/blobdiff - Makefile
buildsys: ordering/style cleanups
[pve-manager.git] / Makefile
index fd93ec8678f8419978de47837b361b006986e5f9..273cc186fd7c2a9dbe2d34ad9f7bc1f0573754ef 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,22 +1,17 @@
-include /usr/share/dpkg/pkg-info.mk
-include /usr/share/dpkg/architecture.mk
+include /usr/share/dpkg/default.mk
 include defines.mk
 
 export PVERELEASE = $(shell echo $(DEB_VERSION_UPSTREAM) | cut -c 1-3)
 export VERSION = $(DEB_VERSION_UPSTREAM_REVISION)
 
-DESTDIR=
-
-SUBDIRS = aplinfo PVE bin www services configs network-hooks test
-
-GITVERSION:=$(shell git rev-parse --short=16 HEAD)
-
-
 BUILDDIR = $(PACKAGE)-$(DEB_VERSION_UPSTREAM)
 
 DSC=$(PACKAGE)_$(DEB_VERSION).dsc
 DEB=$(PACKAGE)_$(DEB_VERSION)_$(DEB_HOST_ARCH).deb
 
+DESTDIR=
+SUBDIRS = aplinfo PVE bin www services configs network-hooks test
+
 all: $(SUBDIRS)
        set -e && for i in $(SUBDIRS); do $(MAKE) -C $$i; done
 
@@ -26,10 +21,7 @@ check: bin test www
        $(MAKE) -C test check
        $(MAKE) -C www check
 
-.PHONY: dinstall
-dinstall: $(DEB)
-       dpkg -i $(DEB)
-
+GITVERSION:=$(shell git rev-parse --short=16 HEAD)
 $(BUILDDIR):
        rm -rf $@ $@.tmp
        mkdir $@.tmp
@@ -79,3 +71,7 @@ clean:
        set -e && for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done
        rm -f $(PACKAGE)*.tar* country.dat *.deb *.dsc *.build *.buildinfo *.changes
        rm -rf dest $(PACKAGE)-[0-9]*/
+
+.PHONY: dinstall
+dinstall: $(DEB)
+       dpkg -i $(DEB)