GRUB 2 likes its PMG files in RGBA flavour.
[ipfire-logos.git] / bootloader / Makefile
CommitLineData
ab5ff2ab
MT
1###############################################################################
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
4###############################################################################
5
6include ../Makeconf
7include ../Makerules
8
9GRUB_THEME_PATH = $(DESTDIR)/boot/grub/themes/system/
10
11BOOTLOADER_BACKGROUND_IN = background.svg
12BOOTLOADER_BACKGROUND_OUT = background.png
13
14all: $(BOOTLOADER_BACKGROUND_OUT)
15
16$(BOOTLOADER_BACKGROUND_OUT): $(BOOTLOADER_BACKGROUND_IN)
d23a78b3
MT
17 # GRUB2 requires the RGBA format.
18 convert $< PNG32:$@
ab5ff2ab
MT
19
20install: $(BOOTLOADER_BACKGROUND_OUT)
d23a78b3 21 -mkdir -pv $(GRUB_THEME_PATH)
ab5ff2ab
MT
22 install -m 644 $< $(GRUB_THEME_PATH)
23
24clean:
25 rm -vf $(BOOTLOADER_BACKGROUND_OUT)