2015-01-12 10:32:20 +01:00
|
|
|
Description: remove make targets for deps
|
|
|
|
Without this patch, dependencies would be downloaded and compiled
|
|
|
|
using rebar at build time.
|
|
|
|
Author: Philipp Huebner <debalance@debian.org>
|
|
|
|
|
|
|
|
Index: ejabberd/Makefile.in
|
|
|
|
===================================================================
|
2015-07-08 11:54:14 +02:00
|
|
|
diff --git a/Makefile.in b/Makefile.in
|
|
|
|
index ffd1d30..09cb8d7 100644
|
|
|
|
--- a/Makefile.in
|
|
|
|
+++ b/Makefile.in
|
|
|
|
@@ -74,26 +74,11 @@ else
|
2015-01-12 10:32:20 +01:00
|
|
|
INIT_USER=$(INSTALLUSER)
|
|
|
|
endif
|
|
|
|
|
|
|
|
-all: deps src
|
|
|
|
+all: src
|
|
|
|
|
|
|
|
-deps: deps/.got
|
|
|
|
-
|
|
|
|
-deps/.got:
|
|
|
|
- rm -rf deps/.got
|
|
|
|
- rm -rf deps/.built
|
|
|
|
- $(REBAR) get-deps && :> deps/.got
|
|
|
|
-
|
|
|
|
-deps/.built: deps/.got
|
|
|
|
- $(REBAR) compile && :> deps/.built
|
|
|
|
-
|
|
|
|
-src: deps/.built
|
|
|
|
+src:
|
|
|
|
$(REBAR) skip_deps=true compile
|
|
|
|
|
|
|
|
-update:
|
|
|
|
- rm -rf deps/.got
|
|
|
|
- rm -rf deps/.built
|
|
|
|
- $(REBAR) update-deps && :> deps/.got
|
|
|
|
-
|
2015-07-08 11:54:14 +02:00
|
|
|
xref: all
|
|
|
|
$(REBAR) skip_deps=true xref
|
2015-01-12 10:32:20 +01:00
|
|
|
|
2015-07-08 11:54:14 +02:00
|
|
|
@@ -109,8 +94,6 @@ spec:
|
2015-01-12 10:32:20 +01:00
|
|
|
$(ERL) -noinput +B -pa ebin -pa deps/*/ebin -eval \
|
|
|
|
'case xml_gen:compile("tools/xmpp_codec.spec") of ok -> halt(0); _ -> halt(1) end.'
|
|
|
|
|
|
|
|
-DLLs := $(wildcard deps/*/priv/*.so) $(wildcard deps/*/priv/lib/*.so)
|
|
|
|
-
|
|
|
|
install: all
|
|
|
|
#
|
|
|
|
# Configuration files
|
2015-07-08 11:54:14 +02:00
|
|
|
@@ -151,8 +134,6 @@ install: all
|
2015-01-12 10:32:20 +01:00
|
|
|
$(INSTALL) -d $(BEAMDIR)
|
|
|
|
$(INSTALL) -m 644 ebin/*.app $(BEAMDIR)
|
|
|
|
$(INSTALL) -m 644 ebin/*.beam $(BEAMDIR)
|
|
|
|
- $(INSTALL) -m 644 deps/*/ebin/*.app $(BEAMDIR)
|
|
|
|
- $(INSTALL) -m 644 deps/*/ebin/*.beam $(BEAMDIR)
|
2015-07-08 11:54:14 +02:00
|
|
|
# Install Elixir and Elixir dependancies
|
|
|
|
-$(INSTALL) -m 644 deps/*/lib/*/ebin/*.app $(BEAMDIR)
|
|
|
|
-$(INSTALL) -m 644 deps/*/lib/*/ebin/*.beam $(BEAMDIR)
|
|
|
|
@@ -161,7 +142,6 @@ install: all
|
2015-01-12 10:32:20 +01:00
|
|
|
# ejabberd header files
|
|
|
|
$(INSTALL) -d $(INCLUDEDIR)
|
|
|
|
$(INSTALL) -m 644 include/*.hrl $(INCLUDEDIR)
|
|
|
|
- $(INSTALL) -m 644 deps/*/include/*.hrl $(INCLUDEDIR)
|
|
|
|
#
|
|
|
|
# Binary C programs
|
|
|
|
$(INSTALL) -d $(PBINDIR)
|
2015-07-08 11:54:14 +02:00
|
|
|
@@ -173,7 +153,6 @@ install: all
|
2015-01-12 10:32:20 +01:00
|
|
|
#
|
|
|
|
# Binary system libraries
|
|
|
|
$(INSTALL) -d $(SODIR)
|
|
|
|
- $(INSTALL) -m 644 $(DLLs) $(SODIR)
|
2015-07-08 11:54:14 +02:00
|
|
|
-[ -f $(SODIR)/jiffy.so ] && (cd $(PRIVDIR); ln -s lib/jiffy.so; true)
|
|
|
|
-[ -f $(SODIR)/sqlite3_drv.so ] && (cd $(PRIVDIR); ln -s lib/sqlite3_drv.so; true)
|
2015-01-12 10:32:20 +01:00
|
|
|
#
|