Browse files

Make tar target added.

  • Loading branch information...
1 parent d95ab5c commit f0f9041cc66a69e23a15a1e42ab19a01808a6668 @saleyn committed Oct 1, 2012
Showing with 19 additions and 2 deletions.
  1. +1 −0 .gitignore
  2. +12 −1 Makefile
  3. +6 −1 README
View
1 .gitignore
@@ -1,5 +1,6 @@
*.beam
*.o
*.swp
+*.tgz
/priv
/ebin
View
13 Makefile
@@ -1,6 +1,9 @@
# See LICENSE for licensing information.
-PROJECT = erlexec
+include vsn.mk
+
+PROJECT = $(notdir $(PWD))
+TARBALL = $(PROJECT)-$(VSN)
DIALYZER = dialyzer
REBAR = rebar
@@ -29,3 +32,11 @@ github-docs:
if git commit -a; then git push origin gh-pages; else ret=1; git reset --hard; fi; \
set -e; git checkout master; exit $$ret"
+tar:
+ @rm -f $(TARBALL).tgz; \
+ cd ..; \
+ tar zcf $(TARBALL).tgz --exclude="core*" --exclude="erl_crash.dump" \
+ --exclude="*.tgz" --exclude="*.swp" --exclude="c_src" \
+ --exclude="Makefile" --exclude="rebar.*" --exclude="*.mk" \
+ --exclude="*.o" --exclude=".git*" $(PROJECT) && \
+ mv $(TARBALL).tgz $(PROJECT)/ && echo "Created $(TARBALL).tgz"
View
7 README
@@ -23,7 +23,12 @@ BUILDING
$ git clone git@github.com:saleyn/erlexec.git
$ make
-
+
+DEPLOYING
+=========
+ Run "make tar". This produces a tarball which you can deploy to your
+ destination environment and untar the content.
+
LICENSE
=======
The program is distributed under BSD license.

0 comments on commit f0f9041

Please sign in to comment.