bump version to 1.20181023-1
[pve-edk2-firmware.git] / Makefile
CommitLineData
33bf0acc
TL
1PACKAGE=pve-edk2-firmware
2# version and package release is controlled over d/changelog
3VER=$(shell dpkg-parsechangelog -S version)
4
5SRCDIR=edk2
6BUILDDIR=${SRCDIR}.build
7
8GITVERSION:=$(shell git rev-parse HEAD)
9
10DEB=${PACKAGE}_${VER}_all.deb
11
12all: ${DEB}
13 @echo ${DEB}
14
15.PHONY: deb
16deb: ${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
27submodule:
28 test -f "${SRCDIR}/Readme.md" || git submodule update --init
29
30.PHONY: update_modules
31update_modules: submodule
32 git submodule foreach 'git pull --ff-only origin master'
33
34.PHONY: upload
35upload: ${DEB}
36 tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pve --dist stretch
37
38.PHONY: distclean
39distclean: clean
40
41.PHONY: clean
42clean:
43 rm -rf *~ debian/*~ *.deb ${BUILDDIR} *.changes *.dsc *.buildinfo
44
45.PHONY: dinstall
46dinstall: ${DEB}
47 dpkg -i ${DEB}