Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

40 lines (29 sloc) 0.892 kB
ERL ?= erl
ERLC = erlc
EBIN_DIRS := $(wildcard deps/*/ebin)
APP := zotonic
PARSER =src/erlydtl/erlydtl_parser
all: mochiweb webmachine erlang-oauth $(PARSER).erl erl ebin/$(APP).app
erl:
@$(ERL) -pa $(EBIN_DIRS) -pa ebin -noinput +B \
-eval 'case make:all() of up_to_date -> halt(0); error -> halt(1) end.'
$(PARSER).erl: $(PARSER).yrl
$(ERLC) -o src/erlydtl src/erlydtl/erlydtl_parser.yrl
mochiweb:
(cd deps/mochiweb; make)
webmachine:
(cd deps/webmachine; make)
erlang-oauth:
(cd deps/erlang-oauth; make)
docs:
@erl -noshell -run edoc_run application '$(APP)' '"."' '[]'
clean:
@echo "removing:"
(cd deps/mochiweb; make clean)
(cd deps/webmachine; make clean)
(cd deps/erlang-oauth; make clean)
@rm -fv ebin/*.beam ebin/*.app
@rm -fv erl_crash.dump $(PARSER).erl
@rm -fv priv/log/*
ebin/$(APP).app:
@cp -v src/$(APP).app $@
Jump to Line
Something went wrong with that request. Please try again.