dist rule

master 0.1
Mark Hills 2012-09-22 11:53:36 +01:00
parent 51419766a5
commit cfd33222c6
1 changed files with 7 additions and 1 deletions

View File

@ -15,7 +15,7 @@ LDLIBS_ORTP ?= -lortp
LDLIBS += $(LDLIBS_ASOUND) $(LDLIBS_OPUS) $(LDLIBS_ORTP) LDLIBS += $(LDLIBS_ASOUND) $(LDLIBS_OPUS) $(LDLIBS_ORTP)
.PHONY: all install clean .PHONY: all install dist clean
all: rx tx all: rx tx
@ -27,6 +27,12 @@ install: rx tx
$(INSTALL) -d $(DESTDIR)$(BINDIR) $(INSTALL) -d $(DESTDIR)$(BINDIR)
$(INSTALL) rx tx $(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: clean:
rm -f *.o *.d tx rx rm -f *.o *.d tx rx