aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2018-06-06 15:28:25 +0200
committerGravatar Christian Hesse <mail@eworm.de>2018-06-06 15:28:25 +0200
commit8866118d6d8f2a6f83b3ec6c32fe70411218180d (patch)
tree72745c3916ac4ebc6f27e2470612c48ff018b14c /Makefile
parentcbd941a7ce70ca3b50bc916a8a98be7fb8fcedb4 (diff)
downloadmkinitcpio-passwd-8866118d6d8f2a6f83b3ec6c32fe70411218180d.tar.gz
mkinitcpio-passwd-8866118d6d8f2a6f83b3ec6c32fe70411218180d.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..e2b2cae
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,16 @@
+# Makefile for mkinitcpio-passwd
+
+VERSION=0.1.0
+
+all:
+ @echo "Just run make install..."
+
+.PHONY: install
+install:
+ install -D -m0644 hook/passwd $(DESTDIR)/usr/lib/initcpio/hooks/passwd
+ install -D -m0644 install/passwd $(DESTDIR)/usr/lib/initcpio/install/passwd
+
+release:
+ git archive --format=tar.xz --prefix=mkinitcpio-passwd-$(VERSION)/ $(VERSION) > mkinitcpio-passwd-$(VERSION).tar.xz
+ gpg -ab mkinitcpio-passwd-$(VERSION).tar.xz
+ git notes --ref=refs/notes/signatures/tar add -C $$(git archive --format=tar --prefix=mkinitcpio-passwd-$(VERSION)/ $(VERSION) | gpg --armor --detach-sign | git hash-object -w --stdin) $(VERSION)