summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 2e471a54bc2a3d914df3cad480027267339f76e0 (about) (plain) (blame)
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
# Makefile for mkinitcpio-archlogo

VERSION=0.2.0

all:
	@echo "Just run make install..."

.PHONY: install
install:
	# install install script and unit file
	install -D -m0644 install/archlogo $(DESTDIR)/usr/lib/initcpio/install/archlogo
	install -D -m0644 systemd/archlogo.service $(DESTDIR)/usr/lib/systemd/system/archlogo.service

	# install hook for plain old script based initramfs
	install -D -m0755 hook/archlogo $(DESTDIR)/usr/lib/initcpio/hooks/archlogo

	# install config
	install -D -m0644 etc/archlogo.conf $(DESTDIR)/etc/archlogo.conf

	# install logos
	install -D -m0644 share/archlogo $(DESTDIR)/usr/share/archlogo/archlogo
	install -D -m0644 share/archlogo2 $(DESTDIR)/usr/share/archlogo/archlogo2
	install -D -m0644 share/archlogo3 $(DESTDIR)/usr/share/archlogo/archlogo3

release:
	git archive --format=tar.xz --prefix=mkinitcpio-archlogo-$(VERSION)/ $(VERSION) > mkinitcpio-archlogo-$(VERSION).tar.xz
	gpg -ab mkinitcpio-archlogo-$(VERSION).tar.xz
	git notes --ref=refs/notes/signatures/tar add -C $$(git archive --format=tar --prefix=mkinitcpio-archlogo-$(VERSION)/ $(VERSION) | gpg --armor --detach-sign | git hash-object -w --stdin) $(VERSION)