2 ## Try to keep it so simple it can be run with BSD-make as well as
5 -include Makefile.config
10 ETORRENT_LIB
=.
/lib
/etorrent-1.0
17 $(DIALYZER
) $(DIALYZER_OPTS
) --verbose
-I
$(ETORRENT_LIB
)/include -r
$(ETORRENT_LIB
)/ebin
20 $(DIALYZER
) --verbose
--succ_typings
-I
$(ETORRENT_LIB
)/include -r
$(ETORRENT_LIB
)
23 cd lib
&& $(MAKE
) tags
26 erl
$(ERL_FLAGS
) -pa
$(ETORRENT_LIB
)/ebin \
27 -config
$(ETORRENT_LIB
)/priv
/etorrent.config \
28 -sname etorrent
-s etorrent start
31 erl
-pa
$(ETORRENT_LIB
)/ebin
-noinput \
32 -sname tracer
-s tr client
35 cd lib
&& $(MAKE
) clean
38 mkdir
-p
$(RELEASE_PREFIX
)/lib
/etorrent-
$(VER
)
39 for i in src ebin
include priv
; do \
40 cp
-r
$(ETORRENT_LIB
)/$$i $(RELEASE_PREFIX
)/lib
/etorrent-
$(VER
) ; \
43 mkdir
-p
$(BIN_PREFIX
)
44 sed
-e
"s|%%%BEAMDIR%%%|$(RELEASE_PREFIX)/lib/etorrent-$(VER)/ebin|;" \
45 -e
"s|%%%CONFIGFILE%%%|$(RELEASE_PREFIX)/lib/etorrent-$(VER)/priv/etorrent.config|;" \
46 -e
"s|%%%ERL_FLAGS%%%|\"$(ERL_FLAGS)\"|" < .
/bin
/etorrentctl.in
> $(BIN_PREFIX
)/etorrentctl
47 chmod
+x
$(BIN_PREFIX
)/etorrentctl