aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 50d4bec78094c541bbbfdd64f59c0a43c355fd4a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Makefile for mkinitcpio-randommac

VERSION=0.2.0

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

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

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