From 5752d9f149108711ed8347b4c60f6220f6f58a8f Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 22 May 2022 00:56:44 +0200 Subject: Makefile: Add `pkg` targeto Packages source files including dependencies for release. --- Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Makefile b/Makefile index 1e9815e..8d57d41 100644 --- a/Makefile +++ b/Makefile @@ -20,6 +20,8 @@ PREFIX=/usr/local LISP ?= sbcl +VERSION := $(shell fgrep ':version' wajir.asd | awk -F '"' '{ print $$2 }') + MAN_PAGE := doc/wajir.1 @@ -56,6 +58,15 @@ bundle/bundled-local-projects/0000/wajir/wajir: bundle --eval '(quit)' +.PHONY: pkg +pkg: wajir_$(VERSION).tar.bz2 + +wajir_$(VERSION).tar.bz2: bundle + git archive --output=wajir_$(VERSION).tar HEAD + tar -rf wajir_$(VERSION).tar bundle + bzip2 wajir_$(VERSION).tar + + .PHONY: install install: bundle/bundled-local-projects/0000/wajir/wajir $(MAN_PAGE) install -m 755 bundle/bundled-local-projects/0000/wajir/wajir $(PREFIX)/bin -- cgit v1.2.3