summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 7cf1653617740e7680c9ac224b51d1dd0b0df0ea (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Makefile for mkinitcpio-hostname

VERSION=0.2.0

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

.PHONY: install
install:
	install -D -m0644 hook/hostname $(DESTDIR)/usr/lib/initcpio/hooks/hostname
	install -D -m0644 install/hostname $(DESTDIR)/usr/lib/initcpio/install/hostname

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