From ece358dff32846ef818da0ae5cfb3941ab7c7ce6 Mon Sep 17 00:00:00 2001 From: Ryan Prior Date: Thu, 21 May 2020 20:16:39 -0500 Subject: [PATCH] Adds pack target to Makefile --- .gitignore | 1 + Makefile | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/.gitignore b/.gitignore index 95c6e5d..2a77b9b 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /meet +/meet-*.tgz diff --git a/Makefile b/Makefile index 6de1463..59a367d 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ DESTDIR := /usr/local +VERSION := $(shell grep version shard.yml | cut -d' ' -f2) meet: meet.cr shard.yml .git/refs/heads/master crystal build --release --static --no-debug -o $@ $< @@ -6,3 +7,9 @@ meet: meet.cr shard.yml .git/refs/heads/master .PHONY: install install: meet install meet $(DESTDIR)/bin/meet + +.PHONY: pack +pack: meet-$(VERSION).tgz + +meet-$(VERSION).tgz: meet COPYING + tar czf $@ $^