Skip to content
Browse files

rebar now calls the build script. rebar update.

  • Loading branch information...
1 parent 7f73577 commit 9c5deda4a621eac302b437dea4274a01ec4ecd02 @TypedLambda TypedLambda committed with Apr 6, 2011
Showing with 6 additions and 10 deletions.
  1. +0 −2 Makefile
  2. BIN rebar
  3. +3 −0 rebar.config
  4. +3 −2 support/build-google-snappy.sh
  5. +0 −6 support/clean-google-snappy.sh
View
2 Makefile
@@ -1,7 +1,6 @@
all: snappy eunit
snappy:
- ./support/build-google-snappy.sh
./rebar compile
eunit:
@@ -10,7 +9,6 @@ eunit:
check: eunit
clean:
- ./support/clean-google-snappy.sh
./rebar clean
rm -fr priv ebin
View
BIN rebar
Binary file not shown.
View
3 rebar.config
@@ -7,3 +7,6 @@
]}.
{so_name, "snappy.so"}.
{eunit_opts, [verbose]}.
+{pre_hooks, [{compile, "./support/build-google-snappy.sh"},
+ {clean, "make -C c_src/google-snappy distclean"}]}.
+
View
5 support/build-google-snappy.sh
@@ -2,6 +2,7 @@
PARENT=`pwd`
cd c_src/google-snappy && \
- ./configure && \
- make
+ [ ! -f libsnappy.la ] && \
+ ./configure && \
+ make
cd "$pwd"
View
6 support/clean-google-snappy.sh
@@ -1,6 +0,0 @@
-#!/usr/bin/env sh
-
-PARENT=`pwd`
-cd c_src/google-snappy && make distclean
-cd "$pwd"
-exit 0

0 comments on commit 9c5deda

Please sign in to comment.
Something went wrong with that request. Please try again.