From 6bd61a28df23ac00d436dde3e087f4e676674ed7 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Tue, 5 Sep 2017 15:17:57 +0200 Subject: Add 'dist' target. --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Makefile') 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 -- cgit v1.1