mirror of
https://github.com/NixOS/nixos-artwork
synced 2024-10-18 00:06:24 -04:00
Merge pull request #114 from lheckemann/build-installer-tarball
Makefile: add provisions for building grub2 installer theme
This commit is contained in:
commit
a36185b45e
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,2 +1,4 @@
|
|||
/result
|
||||
/matrix/result
|
||||
grub2-installer-theme.tar.gz
|
||||
dejavu.pf2
|
||||
|
|
2
Makefile
2
Makefile
|
@ -1,4 +1,4 @@
|
|||
modules = icons
|
||||
modules = icons bootloader
|
||||
|
||||
.PHONY: $(modules) install clean all
|
||||
|
||||
|
|
17
bootloader/Makefile
Normal file
17
bootloader/Makefile
Normal file
|
@ -0,0 +1,17 @@
|
|||
grub2_icons := $(wildcard grub2-installer/icons/*.svg)
|
||||
grub2_icons_png := $(foreach icon,$(icons),$(subst .svg,.png,$(icon)))
|
||||
|
||||
grub2-installer-theme.tar.gz: $(icons_png) $(wildcard grub2-installer/*.png) grub2-installer/dejavu.pf2 grub2-installer/theme.txt
|
||||
tar -czf $@ $^
|
||||
|
||||
.PHONY: clean
|
||||
|
||||
clean:
|
||||
rm $(icons_png) grub2-installer/dejavu.pf2 grub2-installer-theme.tar.gz
|
||||
|
||||
grub2-installer/icons/%.png: grub2-installer/icons/%.svg
|
||||
inkscape -o $@ $<
|
||||
|
||||
grub2-installer/dejavu.pf2:
|
||||
grub-mkfont -s 20 "$(dejavu)/share/fonts/truetype/DejaVuSans.ttf" -o $@
|
||||
|
Binary file not shown.
Loading…
Reference in a new issue