summaryrefslogtreecommitdiff
path: root/deps/ibrowse/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'deps/ibrowse/Makefile')
-rw-r--r--deps/ibrowse/Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/deps/ibrowse/Makefile b/deps/ibrowse/Makefile
new file mode 100644
index 00000000..4021c5b9
--- /dev/null
+++ b/deps/ibrowse/Makefile
@@ -0,0 +1,20 @@
+IBROWSE_VSN = $(shell sed -n 's/.*{vsn,.*"\(.*\)"}.*/\1/p' src/ibrowse.app.src)
+
+all:
+ ./rebar compile
+
+clean:
+ ./rebar clean
+
+install: all
+ mkdir -p $(DESTDIR)/lib/ibrowse-$(IBROWSE_VSN)/
+ cp -r ebin $(DESTDIR)/lib/ibrowse-$(IBROWSE_VSN)/
+
+test: all
+ ./rebar eunit
+ (cd test; make)
+ erl -noshell -pa ebin -pa test -s ibrowse -s ibrowse_test unit_tests \
+ -s ibrowse_test verify_chunked_streaming \
+ -s ibrowse_test test_chunked_streaming_once \
+ -s erlang halt
+