Permalink
Browse files

add snapshot target

SVN Revision: 566
  • Loading branch information...
1 parent d5beba1 commit ad86088eca6dd3f0432ebf3c9b072e83cb783c1f @nniclausse nniclausse committed Nov 9, 2005
Showing with 8 additions and 1 deletion.
  1. +8 −1 Makefile.in
View
@@ -48,8 +48,12 @@ CC = $(ERLC)
ESRC = ./src
EBIN = ./ebin
+ifeq ($(TYPE),snapshot)
+DAY=$(shell date +"%Y%m%d")
+distdir = $(PACKAGE)-$(VERSION)-$(DAY)
+else
distdir = $(PACKAGE)-$(VERSION)
-
+endif
# installation path
BINDIR = $(bindir)
@@ -309,6 +313,9 @@ release: Makefile
rm -fr $(distdir)
rm -fr tmp.tgz
+snapshot:
+ make TYPE=snapshot release
+
builder.beam: priv/builder.erl
$(CC) $(OPT) -I $(INC) $<

0 comments on commit ad86088

Please sign in to comment.