From 0b92faf7f69f57cb1f47d3e539d141f980634fba Mon Sep 17 00:00:00 2001 From: Mark Hills Date: Fri, 1 Jun 2012 12:54:49 +0100 Subject: [PATCH] Make distribution archive --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index 73dcd84..aef85fd 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,14 @@ CFLAGS += -Wall LDLIBS += -lm +.PHONY: clean dist + bpm: bpm.o clean: rm -f bpm *.o + +dist: + mkdir -p dist + V=$$(git describe) && git archive --prefix=bpm-tools-$$V/ HEAD \ + | gzip > dist/bpm-tools-$$V.tar.gz