1 include /usr
/share
/dpkg
/pkg-info.mk
3 GITVERSION
:=$(shell git rev-parse HEAD
)
5 KERNEL_DEB
=proxmox-default-kernel_
$(DEB_VERSION
)_all.deb
6 HEADERS_DEB
=proxmox-default-headers_
$(DEB_VERSION
)_all.deb
8 BUILD_DIR
=proxmox-kernel-meta_
$(DEB_VERSION
)
9 DSC
=proxmox-kernel-meta_
$(DEB_VERSION
).dsc
11 DEBS
=$(KERNEL_DEB
) $(HEADERS_DEB
)
21 cd
$@.tmp
; debian
/rules debian
/control
22 echo
"git clone git://git.proxmox.com/git/pve-kernel-meta.git\\ngit checkout $(GITVERSION)" > $@.tmp
/debian
/SOURCE
25 $(HEADERS_DEB
): $(KERNEL_DEB
)
26 $(KERNEL_DEB
): $(BUILD_DIR
)
27 cd
$(BUILD_DIR
); dpkg-buildpackage
-b
-uc
-us
31 cd
$(BUILD_DIR
); dpkg-buildpackage
-S
-uc
-us
38 upload
: UPLOAD_DIST ?
= $(DEB_DISTRIBUTION
)
40 tar cf
- $(DEBS
)|ssh repoman@repo.proxmox.com
-- upload
--product pve
,pmg
,pbs
--dist $(UPLOAD_DIST
)
42 .PHONY
: clean distclean
45 rm -rf
*~ proxmox-kernel-meta
*/ proxmox-kernel-meta
*.
tar.
* *.deb
*.dsc
*.changes
*.buildinfo
*.build