summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 84553d4..b3f69ac 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
# Makefile for catlfish
-PREFIX=.
+PREFIX=$(PWD)
INSTDIR=$(PREFIX)/catlfish
build all:
@@ -11,11 +11,13 @@ clean:
$(MAKE) -C doc $@
release: all
- rm -rf $(INSTDIR)
mkdir $(INSTDIR)
./makerelease.erl $(INSTDIR)
-dist: release
+install: release
+ make -C tools INSTDIR=$(INSTDIR) install
+
+dist: install
(VER=$$(./version.erl) && \
ARCH=$$(uname -sm | sed -e 's/ /-/g') && \
N=catlfish-$${VER}_$${ARCH} && \