summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a9c6d6d..b7c3c41 100644
--- a/Makefile
+++ b/Makefile
@@ -15,6 +15,14 @@ release: all
mkdir $(INSTDIR)
./makerelease.erl $(INSTDIR)
+dist: release
+ (VER=$$(./version.erl) && \
+ ARCH=$$(uname -m) && \
+ N=catlfish-$${VER}.$${ARCH} && \
+ { ln -s $$(basename $(INSTDIR)) $${N} && \
+ tar chf - $${N} | xz > $${N}.tar.xz; }; \
+ rm $${N})
+
tests:
make -C test tests