]> git.proxmox.com Git - zfs-grub.git/blob - Makefile
bump RELEASE to 6.0
[zfs-grub.git] / Makefile
1 RELEASE=5.0
2
3 GRUB_DIR=grub
4 GRUB_SRC=${GRUB_DIR}.tar.gz
5 TAG=debian/2.02_beta3-5
6
7 # update/sync changelog.pve
8 DEBVER=2.02-pve6
9
10 PC_DEBS= \
11 grub2_${DEBVER}_amd64.deb \
12 grub2-common_${DEBVER}_amd64.deb \
13 grub-common_${DEBVER}_amd64.deb \
14 grub-efi-amd64-bin_${DEBVER}_amd64.deb \
15 grub-pc_${DEBVER}_amd64.deb \
16 grub-pc-bin_${DEBVER}_amd64.deb \
17 grub-pc-dbg_${DEBVER}_amd64.deb \
18 grub-rescue-pc_${DEBVER}_amd64.deb \
19 grub-theme-starfield_${DEBVER}_amd64.deb
20
21 EFI_DEBS= \
22 grub-efi_${DEBVER}_amd64.deb \
23 grub-efi-amd64_${DEBVER}_amd64.deb \
24 grub-efi-ia32_${DEBVER}_amd64.deb \
25 grub-efi-ia32-bin_${DEBVER}_amd64.deb \
26
27 DEBS=${PC_DEBS} ${EFI_DEBS}
28
29 all: ${DEBS}
30
31 .PHONY: dinstall
32 dinstall: ${DEBS}
33 dpkg -i ${PC_DEBS}
34
35 .PHONY: deb
36 deb: ${DEBS}
37 ${DEBS}:
38 rm -rf ${GRUB_DIR}
39 tar xf ${GRUB_SRC}
40 mv ${GRUB_DIR}/debian/changelog ${GRUB_DIR}/debian/changelog.org
41 cat changelog.pve ${GRUB_DIR}/debian/changelog.org > ${GRUB_DIR}/debian/changelog
42 cd ${GRUB_DIR}; ln -s ../pvepatches patches
43 cd ${GRUB_DIR}; quilt push -a
44 # hack: remove quilt dir, so that dpkg-buildpackage correctly apply
45 # all debian patches
46 rm -rf ${GRUB_DIR}/.pc ${GRUB_DIR}/patches
47 cd ${GRUB_DIR}; dpkg-buildpackage -b -uc -us
48
49 .PHONY: download
50 download:
51 rm -rf grub ${GRUB_SRC} ${GRUB_SRC}.tmp
52 git clone --recursive -b ${TAG} https://anonscm.debian.org/cgit/pkg-grub/grub.git
53 tar czf ${GRUB_SRC}.tmp grub
54 mv ${GRUB_SRC}.tmp ${GRUB_SRC}
55
56 .PHONY: upload
57 upload: ${DEBS}
58 tar cf - ${DEBS} | ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch amd64
59
60 .PHONY: distclean
61 distclean: clean
62
63 clean:
64 rm -rf *~ *.deb *.udeb *.changes *.buildinfo ${GRUB_DIR}