aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 3435c39c92c32f70855c9e316f9f42633336d8ce (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Makefile for mkinitcpio-uname

VERSION=0.2.1

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

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

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

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