diff options
author | Linus Nordberg <linus@nordu.net> | 2017-09-05 15:17:57 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2017-09-05 15:17:57 +0200 |
commit | 6bd61a28df23ac00d436dde3e087f4e676674ed7 (patch) | |
tree | 23664d34d01f2b8b4f0792d58937830b1f0ed439 /Makefile | |
parent | a5abe80eca5645e2f94ae23e2b975608993217a3 (diff) |
Add 'dist' target.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |