This repository was archived by the owner on Feb 17, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (25 loc) · 1.36 KB
/
Makefile
File metadata and controls
33 lines (25 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
NAME = asahi-fedora-remix-logos
XML = backgrounds/desktop-backgrounds-fedora.xml
all: bootloader/fedora.icns
VERSION := $(shell awk '/Version:/ { print $$2 }' $(NAME).spec)
RELEASE := $(shell awk '/Release:/ { print $$2 }' $(NAME).spec | sed 's|%{?dist}||g')
TAG=$(NAME)-$(VERSION)-$(RELEASE)
bootloader/fedora.icns: pixmaps/fedora-logo-small.png
png2icns bootloader/fedora.icns pixmaps/fedora-logo-small.png
bootloader/bootlogo_128.png: pixmaps/fedora-logo-sprite.svg
convert -background none -resize 128x128 -gravity center -extent 128x128 pixmaps/fedora-logo-sprite.svg bootloader/bootlogo_128.png
zopflipng -ym bootloader/bootlogo_128.png bootloader/bootlogo_128.png
bootloader/bootlogo_256.png: pixmaps/fedora-logo-sprite.svg
convert -background none -resize 256x256 -gravity center -extent 256x256 pixmaps/fedora-logo-sprite.svg bootloader/bootlogo_256.png
zopflipng -ym bootloader/bootlogo_256.png bootloader/bootlogo_256.png
tag:
@git tag -a -f -m "Tag as $(TAG)" -f $(TAG)
@echo "Tagged as $(TAG)"
archive: tag
@git archive --format=tar --prefix=$(NAME)-$(VERSION)/ HEAD > $(NAME)-$(VERSION).tar
@bzip2 -f $(NAME)-$(VERSION).tar
@echo "$(NAME)-$(VERSION).tar.bz2 created"
@sha1sum $(NAME)-$(VERSION).tar.bz2 > $(NAME)-$(VERSION).sha1sum
@echo "Everything done"
clean:
rm -f *~ *bz2 bootloader/fedora.icns bootloader/bootlogo_128.png bootloader/bootlogo_256.png