2010-02-25 17:45:11 +00:00
|
|
|
ERL ?= erl
|
|
|
|
EBIN_DIRS := $(wildcard deps/*/ebin)
|
|
|
|
APP := flukso
|
|
|
|
|
2010-03-13 13:00:51 +00:00
|
|
|
all: erl ebin/$(APP).app erlrrd mysql
|
2010-02-25 17:45:11 +00:00
|
|
|
|
|
|
|
erl:
|
|
|
|
@$(ERL) -pa $(EBIN_DIRS) -noinput +B \
|
|
|
|
-eval 'case make:all() of up_to_date -> halt(0); error -> halt(1) end.'
|
|
|
|
|
|
|
|
docs:
|
|
|
|
@erl -noshell -run edoc_run application '$(APP)' '"."' '[]'
|
|
|
|
|
|
|
|
clean:
|
|
|
|
@echo "removing:"
|
|
|
|
@rm -fv ebin/*.beam ebin/*.app
|
|
|
|
|
|
|
|
ebin/$(APP).app: src/$(APP).app
|
|
|
|
@cp -v src/$(APP).app $@
|
|
|
|
|
|
|
|
erlrrd:
|
|
|
|
@(cd deps/erlrrd;$(MAKE))
|
|
|
|
|
2010-03-13 13:00:51 +00:00
|
|
|
mysql:
|
|
|
|
@(cd deps/mysql;$(MAKE))
|