aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2018-06-06 16:05:14 +0200
committerGravatar Christian Hesse <mail@eworm.de>2018-06-06 16:05:14 +0200
commitfbc6ae3e5386a765e2292e9ee18c65a10341afaa (patch)
tree3e538e038d031d1af92b97be8632320429f26aed /Makefile
parenta0da8e8631f6b423b919dd774e0bb4e4449a2909 (diff)
downloadmkinitcpio-hostname-fbc6ae3e5386a765e2292e9ee18c65a10341afaa.tar.gz
mkinitcpio-hostname-fbc6ae3e5386a765e2292e9ee18c65a10341afaa.tar.zst
add Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..c4b507c
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,16 @@
+# Makefile for mkinitcpio-hostname
+
+VERSION=0.1.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 -ab 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 | git hash-object -w --stdin) $(VERSION)