From f0f24939e5100c9b42ce782d55f87161caf8739e Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Wed, 6 Sep 2017 14:24:07 +0200 Subject: Use full INSTDIR; Add kernel name (system) to filename Also, use '_' for separating catlfish version and target OS+arch instead of '.'. --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index b7c3c41..84553d4 100644 --- a/Makefile +++ b/Makefile @@ -17,10 +17,10 @@ release: all dist: release (VER=$$(./version.erl) && \ - ARCH=$$(uname -m) && \ - N=catlfish-$${VER}.$${ARCH} && \ - { ln -s $$(basename $(INSTDIR)) $${N} && \ - tar chf - $${N} | xz > $${N}.tar.xz; }; \ + ARCH=$$(uname -sm | sed -e 's/ /-/g') && \ + N=catlfish-$${VER}_$${ARCH} && \ + { ln -s $(INSTDIR) $${N} && \ + tar c --dereference -f - $${N} | xz > $${N}.tar.xz; }; \ rm $${N}) tests: -- cgit v1.1