summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 932b1a2ea59a19df6905b23ed265568fb2294520 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Makefile for grub-reboot-poweroff

VERSION=0.2.1

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

.PHONY: install
install:
	install -D -m0755 90_reboot $(DESTDIR)/etc/grub.d/90_reboot
	install -D -m0755 91_poweroff $(DESTDIR)/etc/grub.d/91_poweroff

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