Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 37 lines (27 sloc) 1.061 kB
99507bf @mmzeeman Using ERLC_EMULATOR was a dumb idea, erlc doesn't work when set as en…
mmzeeman authored
1 ERL ?= erl
2 ERLC ?= $(ERL)c
3 APP := zotonic
4 PARSER =src/erlydtl/erlydtl_parser
a6d8e2e Added r1392 from Zotonic svn
marc@zoo.local authored
5
0e5a9ea @arjan Makefile now inits/updates git submodules if any.
arjan authored
6 GIT_CHECK := $(shell test -d .git && git submodule update --init)
15b624a @kaos Avoid // in path of found Makefiles.
kaos authored
7 MAKEFILES := $(shell find -L deps modules priv/sites priv/modules priv/extensions priv/sites/*/modules -maxdepth 2 -name Makefile)
7c5b6c0 @arjan Makefile - use "find" to locate every Makefile we need, including tho…
arjan authored
8
0e5a9ea @arjan Makefile now inits/updates git submodules if any.
arjan authored
9 all: iconv makefile-deps $(PARSER).erl erl ebin/$(APP).app
a6d8e2e Added r1392 from Zotonic svn
marc@zoo.local authored
10
11 erl:
0246f10 @arjan Dynamically calculate the ebin dirs when compiling .erl, to ensure de…
arjan authored
12 @$(ERL) -pa $(wildcard deps/*/ebin) -pa ebin -noinput +B \
a6d8e2e Added r1392 from Zotonic svn
marc@zoo.local authored
13 -eval 'case make:all() of up_to_date -> halt(0); error -> halt(1) end.'
14
15 $(PARSER).erl: $(PARSER).yrl
7baa61b @mworrell Added iconv, needed for receiving e-mail.
mworrell authored
16 $(ERLC) -o src/erlydtl $(PARSER).yrl
a6d8e2e Added r1392 from Zotonic svn
marc@zoo.local authored
17
7baa61b @mworrell Added iconv, needed for receiving e-mail.
mworrell authored
18 iconv:
bc9de2d @arjan Use shipped rebar instead of Rakefile to compile iconv. Removes build…
arjan authored
19 cd deps/iconv && ./rebar compile
7baa61b @mworrell Added iconv, needed for receiving e-mail.
mworrell authored
20
0e5a9ea @arjan Makefile now inits/updates git submodules if any.
arjan authored
21 makefile-deps:
7c5b6c0 @arjan Makefile - use "find" to locate every Makefile we need, including tho…
arjan authored
22 @if [ "${MAKEFILES}" != "" ]; then for f in ${MAKEFILES}; do echo $$f; $(MAKE) -C `dirname $$f`; done; fi
23
a6d8e2e Added r1392 from Zotonic svn
marc@zoo.local authored
24 docs:
e53c246 @arjan Fixed the "make docs" command in the Makefile
arjan authored
25 bin/zotonic generate-edoc
a6d8e2e Added r1392 from Zotonic svn
marc@zoo.local authored
26
0e5a9ea @arjan Makefile now inits/updates git submodules if any.
arjan authored
27 clean:
a6d8e2e Added r1392 from Zotonic svn
marc@zoo.local authored
28 @echo "removing:"
bc9de2d @arjan Use shipped rebar instead of Rakefile to compile iconv. Removes build…
arjan authored
29 (cd deps/iconv; ./rebar clean)
7c5b6c0 @arjan Makefile - use "find" to locate every Makefile we need, including tho…
arjan authored
30 @if [ "${MAKEFILES}" != "" ]; then for f in ${MAKEFILES}; do echo $$f; $(MAKE) -C `dirname $$f` clean; done; fi
65baab6 @arjan Fix for issue #96: remove GNU-only argument from rm "make clean".
arjan authored
31 rm -f ebin/*.beam ebin/*.app
32 rm -f erl_crash.dump $(PARSER).erl
33 rm -f priv/log/*
a6d8e2e Added r1392 from Zotonic svn
marc@zoo.local authored
34
35 ebin/$(APP).app:
3574a1c @mworrell Removed the -c option from cp, this option is only available in GNU m…
mworrell authored
36 cp src/$(APP).app $@
Something went wrong with that request. Please try again.