Finish off the last bit of debinstall
[refind] / debian / rules
1 #!/usr/bin/make -f
2
3 export DH_VERBOSE := 1
4
5 DEB_HOST_ARCH_CPU := $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU 2>/dev/null)
6 ifeq (amd64, $(DEB_HOST_ARCH_CPU))
7 EFI_ARCH := x64
8 else
9 ifeq (i386, $(DEB_HOST_ARCH_CPU))
10 EFI_ARCH := ia32
11 else
12 $(warning EFI architecture for $(DEB_HOST_ARCH_CPU) is unknown)
13 EFI_ARCH := $(DEB_HOST_ARCH_CPU)
14 endif
15 endif
16
17 %:
18 dh $@
19
20 override_dh_auto_clean:
21 dh_auto_clean
22 rm -rf drivers_*/
23
24 override_dh_auto_build:
25 $(MAKE) gnuefi
26 $(MAKE) fs_gnuefi
27
28 override_dh_auto_install:
29 # "make install" actually runs "efi-install" for the current system, so let's not do that :)
30
31 override_dh_install:
32 dh_install
33 mkdir -p debian/refind/usr/share/refind/refind/tools_$(EFI_ARCH)
34 cp gptsync/gptsync_$(EFI_ARCH).efi debian/refind/usr/share/refind/refind/tools_$(EFI_ARCH)/
35
36 override_dh_installchangelogs:
37 dh_installchangelogs NEWS.txt