diff options
author | Christian Hesse <mail@eworm.de> | 2018-06-06 16:24:51 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2018-06-06 16:24:51 +0200 |
commit | aea424ba74a39c9355ae4df5299eecbaf6efd5d7 (patch) | |
tree | 0548d52664d74253a377e870985e206808dea2e2 | |
parent | 8cd8f56b204bbabb1a0ba131d2178fb44eed826a (diff) | |
download | mkinitcpio-uname-aea424ba74a39c9355ae4df5299eecbaf6efd5d7.tar.gz mkinitcpio-uname-aea424ba74a39c9355ae4df5299eecbaf6efd5d7.tar.zst |
add Makefile
-rw-r--r-- | Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c8d4db6 --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ +# Makefile for mkinitcpio-uname + +VERSION=0.1.0 + +all: + @echo "Just run make install..." + +.PHONY: install +install: + install -D -m0644 install/uname $(DESTDIR)/usr/lib/initcpio/install/uname + install -D -m0755 hook/uname $(DESTDIR)/usr/lib/initcpio/hooks/uname + install -D -m0644 systemd/uname.service $(DESTDIR)/usr/lib/systemd/system/uname.service + install -D -m0755 systemd/uname $(DESTDIR)/usr/lib/systemd/scripts/uname + +release: + git archive --format=tar.xz --prefix=mkinitcpio-uname-$(VERSION)/ $(VERSION) > mkinitcpio-uname-$(VERSION).tar.xz + gpg -ab mkinitcpio-uname-$(VERSION).tar.xz + git notes --ref=refs/notes/signatures/tar add -C $$(git archive --format=tar --prefix=mkinitcpio-uname-$(VERSION)/ $(VERSION) | gpg --armor --detach-sign | git hash-object -w --stdin) $(VERSION) |