summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2018-06-06 16:41:09 +0200
committerGravatar Christian Hesse <mail@eworm.de>2018-06-06 16:41:09 +0200
commit24de9460338ed98be70ecb0024e13b60b6d9022f (patch)
tree48a12c8c4a38abfdaf8942f650db5db9bc4a6512
parent20d6bcc38ee2d1c0399aff072f7b8f2e922a2680 (diff)
downloadgrub-reboot-poweroff-24de9460338ed98be70ecb0024e13b60b6d9022f.tar.gz
grub-reboot-poweroff-24de9460338ed98be70ecb0024e13b60b6d9022f.tar.zst
add Makefile
-rw-r--r--Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..381e07f
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,16 @@
+# Makefile for grub-reboot-poweroff
+
+VERSION=0.1.0
+
+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 -ab 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 | git hash-object -w --stdin) $(VERSION)