summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-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: