summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2017-09-06 14:24:07 +0200
committerLinus Nordberg <linus@nordu.net>2017-09-06 14:24:07 +0200
commitf0f24939e5100c9b42ce782d55f87161caf8739e (patch)
treea5e7104d6c6129b30663058cf886950875d888f2
parent1d37ce55ed52c93453090fa25113780001dc6162 (diff)
Use full INSTDIR; Add kernel name (system) to filename
Also, use '_' for separating catlfish version and target OS+arch instead of '.'.
-rw-r--r--Makefile8
1 files 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: