From cfd33222c6fc8c8f58dcbd0148f77e0b54761c7b Mon Sep 17 00:00:00 2001 From: Mark Hills Date: Sat, 22 Sep 2012 11:53:36 +0100 Subject: [PATCH] dist rule --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index dc506a4..ffcd883 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,7 @@ LDLIBS_ORTP ?= -lortp LDLIBS += $(LDLIBS_ASOUND) $(LDLIBS_OPUS) $(LDLIBS_ORTP) -.PHONY: all install clean +.PHONY: all install dist clean all: rx tx @@ -27,6 +27,12 @@ install: rx tx $(INSTALL) -d $(DESTDIR)$(BINDIR) $(INSTALL) rx tx $(DESTDIR)$(BINDIR) +dist: + mkdir -p dist + V=$$(git describe) && \ + git archive --prefix="trx-$$V/" HEAD | \ + gzip > "dist/trx-$$V.tar.gz" + clean: rm -f *.o *.d tx rx