1 include /usr
/share
/dpkg
/default.mk
4 export PVERELEASE
= $(shell echo
$(DEB_VERSION_UPSTREAM
) | cut
-d.
-f1-2
)
5 export VERSION
= $(DEB_VERSION_UPSTREAM_REVISION
)
7 BUILDDIR
= $(PACKAGE
)-$(DEB_VERSION_UPSTREAM
)
9 DSC
=$(PACKAGE
)_
$(DEB_VERSION
).dsc
10 DEB
=$(PACKAGE
)_
$(DEB_VERSION
)_
$(DEB_HOST_ARCH
).deb
13 SUBDIRS
= aplinfo PVE bin www services configs network-hooks
test templates
16 set
-e
&& for i in
$(SUBDIRS
); do
$(MAKE
) -C
$$i; done
24 GITVERSION
:=$(shell git rev-parse
--short
=16 HEAD
)
29 echo
"git clone git://git.proxmox.com/git/pve-manager.git\\ngit checkout $(GITVERSION)" > $@.tmp
/debian
/SOURCE
30 echo
"REPOID_GENERATED=$(GITVERSION)" > $@.tmp
/debian
/rules.env
36 cd
$(BUILDDIR
); dpkg-buildpackage
-b
-us
-uc
40 rm -rf
$(BUILDDIR
) $(DSC
)
44 cd
$(BUILDDIR
); dpkg-buildpackage
-S
-us
-uc
-d
50 upload
: UPLOAD_DIST ?
= $(DEB_DISTRIBUTION
)
52 tar cf
- $(DEB
) | ssh
-X repoman@repo.proxmox.com upload
--product pve
--dist $(UPLOAD_DIST
)
55 install: vzdump-hook-script.pl
56 install -d
-m
0700 -o www-data
-g www-data
$(DESTDIR
)/var
/log
/pveproxy
57 install -d
$(DOCDIR
)/examples
58 install -d
$(DESTDIR
)/var
/lib
/$(PACKAGE
)
59 install -d
$(DESTDIR
)/var
/lib
/vz
/images
60 install -d
$(DESTDIR
)/var
/lib
/vz
/template
/cache
61 install -d
$(DESTDIR
)/var
/lib
/vz
/template
/iso
62 install -m
0644 vzdump-hook-script.pl
$(DOCDIR
)/examples
/vzdump-hook-script.pl
63 install -m
0644 spice-example-sh
$(DOCDIR
)/examples
/spice-example-sh
64 set
-e
&& for i in
$(SUBDIRS
); do
$(MAKE
) -C
$$i $@
; done
71 set
-e
&& for i in
$(SUBDIRS
); do
$(MAKE
) -C
$$i $@
; done
72 rm -f
$(PACKAGE
)*.
tar* country.dat
*.deb
*.dsc
*.build
*.buildinfo
*.changes
73 rm -rf dest
$(PACKAGE
)-[0-9]*/