diff options
author | Linus Nordberg <linus@nordu.net> | 2017-09-06 14:24:07 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2017-09-06 14:24:07 +0200 |
commit | f0f24939e5100c9b42ce782d55f87161caf8739e (patch) | |
tree | a5e7104d6c6129b30663058cf886950875d888f2 /Makefile | |
parent | 1d37ce55ed52c93453090fa25113780001dc6162 (diff) |
Use full INSTDIR; Add kernel name (system) to filename
Also, use '_' for separating catlfish version and target OS+arch
instead of '.'.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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: |