]> git.proxmox.com Git - zfs-grub.git/blame - Makefile
remove stale patches
[zfs-grub.git] / Makefile
CommitLineData
27aff8bb 1RELEASE=4.0
0744dbb9 2
9f95a649
DM
3GRUB_DIR=grub
4GRUB_SRC=${GRUB_DIR}.tar.gz
5SNAPVER=2.02-beta2.9-ZOL11-7aa9f6
0744dbb9 6
115c0dfd 7# update/sync changelog.pve
9f95a649 8DEBVER=2.02-pve2
115c0dfd 9
794dd088 10PC_DEBS= \
115c0dfd 11grub2-common_${DEBVER}_amd64.deb \
794dd088
DM
12grub-common_${DEBVER}_amd64.deb \
13grub-efi-amd64-bin_${DEBVER}_amd64.deb \
115c0dfd 14grub-pc_${DEBVER}_amd64.deb \
794dd088
DM
15grub-pc-bin_${DEBVER}_amd64.deb \
16grub-pc-dbg_${DEBVER}_amd64.deb \
115c0dfd
DM
17grub-rescue-pc_${DEBVER}_amd64.deb \
18grub-theme-starfield_${DEBVER}_amd64.deb
0744dbb9 19
794dd088
DM
20EFI_DEBS= \
21grub-efi_${DEBVER}_amd64.deb \
22grub-efi-amd64_${DEBVER}_amd64.deb \
23grub-efi-ia32_${DEBVER}_amd64.deb \
24grub-efi-ia32-bin_${DEBVER}_amd64.deb \
25
26DEBS=${PC_DEBS} ${EFI_DEBS}
27
0744dbb9 28all: ${DEBS}
0744dbb9 29
cfff0573
DM
30.PHONY: dinstall
31dinstall: ${DEBS}
794dd088 32 dpkg -i ${PC_DEBS}
cfff0573
DM
33
34.PHONY: grub
35grub ${DEBS}:
0744dbb9
DM
36 rm -rf ${GRUB_DIR}
37 tar xf ${GRUB_SRC}
115c0dfd
DM
38 mv ${GRUB_DIR}/debian/changelog ${GRUB_DIR}/debian/changelog.org
39 cat changelog.pve ${GRUB_DIR}/debian/changelog.org > ${GRUB_DIR}/debian/changelog
0744dbb9
DM
40 cd ${GRUB_DIR}; ln -s ../pvepatches patches
41 cd ${GRUB_DIR}; quilt push -a
b1e7395a
DM
42 # hack: remove quilt dir, so that dpkg-buildpackage correctly apply
43 # all debian patches
44 rm -rf ${GRUB_DIR}/.pc ${GRUB_DIR}/patches
0744dbb9
DM
45 cd ${GRUB_DIR}; dpkg-buildpackage -b -uc -us
46
cfff0573
DM
47.PHONY: download
48download:
9f95a649
DM
49 rm -rf grub ${GRUB_SRC} ${GRUB_SRC}.tmp
50 git clone https://github.com/zfsonlinux/grub
51 cd grub; git checkout snapshot/debian/jessie/${SNAPVER}
52 tar czf ${GRUB_SRC}.tmp grub
53 mv ${GRUB_SRC}.tmp ${GRUB_SRC}
cfff0573
DM
54
55.PHONY: upload
56upload: ${DEBS}
57 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw
58 mkdir -p /pve/${RELEASE}/extra
59 rm -f /pve/${RELEASE}/extra/grub2-*.deb
60 rm -f /pve/${RELEASE}/extra/grub-*.deb
61 cp ${DEBS} /pve/${RELEASE}/extra
62 cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
63 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
64
65.PHONY: distclean
66distclean: clean
0744dbb9
DM
67
68clean:
cfff0573 69 rm -rf *~ *.deb *.udeb *.changes ${GRUB_DIR}