]> git.proxmox.com Git - pve-edk2-firmware.git/blob - Makefile
update to current upstream revision
[pve-edk2-firmware.git] / Makefile
1 PACKAGE=pve-edk2-firmware
2 # version and package release is controlled over d/changelog
3 VER=$(shell dpkg-parsechangelog -S version)
4
5 SRCDIR=edk2
6 BUILDDIR=${SRCDIR}.build
7
8 GITVERSION:=$(shell git rev-parse HEAD)
9
10 DEB=${PACKAGE}_${VER}_all.deb
11
12 all: ${DEB}
13 @echo ${DEB}
14
15 .PHONY: deb
16 deb: ${DEB}
17 ${DEB}: | submodule
18 rm -rf ${BUILDDIR}
19 cp -rpa ${SRCDIR} ${BUILDDIR}
20 cp -a debian ${BUILDDIR}
21 echo "git clone git://git.proxmox.com/git/pve-edk2-firmware.git\\ngit checkout ${GITVERSION}" > ${BUILDDIR}/debian/SOURCE
22 cd ${BUILDDIR}; dpkg-buildpackage -b -uc -us
23 lintian ${DEB}
24 @echo ${DEB}
25
26 .PHONY: submodule
27 submodule:
28 test -f "${SRCDIR}/Readme.md" || git submodule update --init
29
30 .PHONY: update_modules
31 update_modules: submodule
32 git submodule foreach 'git pull --ff-only origin master'
33
34 .PHONY: upload
35 upload: ${DEB}
36 tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pve --dist stretch
37
38 .PHONY: distclean
39 distclean: clean
40
41 .PHONY: clean
42 clean:
43 rm -rf *~ debian/*~ *.deb ${BUILDDIR} *.changes *.dsc *.buildinfo
44
45 .PHONY: dinstall
46 dinstall: ${DEB}
47 dpkg -i ${DEB}