Commits

Alvaro Videla committed 9b2cf4f

make all will try to solve webmachine deps

Comments (0)

Files changed (1)

 ERL          ?= erl
 EBIN_DIRS    := $(wildcard deps/*/ebin)
 APP          := trakt
-
-all: erl ebin/$(APP).app
-
+ 
+all: deps/webmachine erl ebin/$(APP).app
+ 
+deps/webmachine:
+	@mkdir -p deps
+	@hg clone http://bitbucket.org/justin/webmachine/ deps/webmachine
+	@(cd deps/webmachine;$(MAKE))
+ 
 erl:
+	@mkdir -p ebin
 	@$(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: 
+ 
+clean:
 	@echo "removing:"
-	@rm -fv ebin/*.beam ebin/*.app
-
-ebin/$(APP).app: src/$(APP).app
-	@cp -v src/$(APP).app $@
+	@(cd ebin;find . -type f ! -name ${APP}.app -execdir rm -v {} +)