Permalink
Browse files

Added a "dist" make target.

Change-Id: If39ba8b1aa34def97ace0daec7e65ef962b5db5f
Reviewed-on: http://review.couchbase.org/8217
Tested-by: Dustin Sallings <dustin@spy.net>
Reviewed-by: Steve Yen <steve.yen@gmail.com>
  • Loading branch information...
1 parent e2ff445 commit 5f429c1c82ae14c6899c463b887d7d74869e3cec @dustin dustin committed with steveyen Jul 22, 2011
Showing with 9 additions and 1 deletion.
  1. +2 −0 .gitignore
  2. +7 −1 Makefile
View
@@ -1,4 +1,6 @@
*.beam
+*.tar.gz
*~
coverage
erl_crash.dump
+tmp
View
@@ -1,12 +1,18 @@
COUCH_SRC=../couchdb/src/couchdb
+VERSION=$(shell git describe)
all: ebin compile
ebin:
mkdir -p ebin
clean:
- rm -rf ebin
+ rm -rf ebin *.tar.gz
compile:
erl -pa build -noinput +B -eval 'case make:all([{i, "'${COUCH_SRC}'"}]) of up_to_date -> halt(0); error -> halt(1) end.'
+
+mccouch-$(VERSION).tar.gz:
+ git archive --prefix=mccouch-$(VERSION)/ --format tar HEAD | gzip -9vc > $@
+
+dist: mccouch-$(VERSION).tar.gz

0 comments on commit 5f429c1

Please sign in to comment.