1
0
mirror of http://www.pogo.org.uk/~mark/trx.git synced 2024-12-21 15:15:05 +01:00

dist rule

This commit is contained in:
Mark Hills 2012-09-22 11:53:36 +01:00
parent 51419766a5
commit cfd33222c6

View File

@ -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