Permalink
Browse files

Added version file.

  • Loading branch information...
1 parent 0e197e0 commit 0d04845fd6d7069b0e42897de8b7efc2b7b5b60c @Licenser Licenser committed Feb 5, 2013
Showing with 6 additions and 2 deletions.
  1. +1 −0 .gitignore
  2. +5 −2 Makefile
View
@@ -1,3 +1,4 @@
+*.version
apps/wiggle/src/wiggle_version.hrl
apps/wiggle/.eunit/
rel/pkg/packlist
View
@@ -5,9 +5,12 @@ REBAR = $(shell pwd)/rebar
all: deps compile
version:
- echo "-define(VERSION, <<\"$(shell git symbolic-ref HEAD 2> /dev/null | cut -b 12-)-$(shell git log --pretty=format:'%h, %ad' -1)\">>)." > apps/wiggle/src/wiggle_version.hrl
+ echo "$(shell git symbolic-ref HEAD 2> /dev/null | cut -b 12-)-$(shell git log --pretty=format:'%h, %ad' -1)" > wiggle.version
-compile: version
+version_header: version
+ echo "-define(VERSION, <<\"$(shell cat wiggle.version)\">>)." > apps/wiggle/src/wiggle_version.hrl
+
+compile: version_header
$(REBAR) compile
deps:

0 comments on commit 0d04845

Please sign in to comment.