From cecec6351dac2ae0f5e360fbfe808376a8e24e59 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 6 Jun 2018 15:40:33 +0200 Subject: Makefile: add release target --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index d06d136..2e471a5 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,11 @@ # Makefile for mkinitcpio-archlogo +VERSION=0.2.0 + all: @echo "Just run make install..." +.PHONY: install install: # install install script and unit file install -D -m0644 install/archlogo $(DESTDIR)/usr/lib/initcpio/install/archlogo @@ -19,4 +22,7 @@ install: install -D -m0644 share/archlogo2 $(DESTDIR)/usr/share/archlogo/archlogo2 install -D -m0644 share/archlogo3 $(DESTDIR)/usr/share/archlogo/archlogo3 -.PHONY: install +release: + git archive --format=tar.xz --prefix=mkinitcpio-archlogo-$(VERSION)/ $(VERSION) > mkinitcpio-archlogo-$(VERSION).tar.xz + gpg -ab mkinitcpio-archlogo-$(VERSION).tar.xz + git notes --ref=refs/notes/signatures/tar add -C $$(git archive --format=tar --prefix=mkinitcpio-archlogo-$(VERSION)/ $(VERSION) | gpg --armor --detach-sign | git hash-object -w --stdin) $(VERSION) -- cgit v1.2.3-70-g09d2