Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

37 lines (27 sloc) 1.061 kb
ERL ?= erl
ERLC ?= $(ERL)c
APP := zotonic
PARSER =src/erlydtl/erlydtl_parser
GIT_CHECK := $(shell test -d .git && git submodule update --init)
MAKEFILES := $(shell find -L deps modules priv/sites priv/modules priv/extensions priv/sites/*/modules -maxdepth 2 -name Makefile)
all: iconv makefile-deps $(PARSER).erl erl ebin/$(APP).app
erl:
@$(ERL) -pa $(wildcard deps/*/ebin) -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 $(PARSER).yrl
iconv:
cd deps/iconv && ./rebar compile
makefile-deps:
@if [ "${MAKEFILES}" != "" ]; then for f in ${MAKEFILES}; do echo $$f; $(MAKE) -C `dirname $$f`; done; fi
docs:
bin/zotonic generate-edoc
clean:
@echo "removing:"
(cd deps/iconv; ./rebar clean)
@if [ "${MAKEFILES}" != "" ]; then for f in ${MAKEFILES}; do echo $$f; $(MAKE) -C `dirname $$f` clean; done; fi
rm -f ebin/*.beam ebin/*.app
rm -f erl_crash.dump $(PARSER).erl
rm -f priv/log/*
ebin/$(APP).app:
cp src/$(APP).app $@
Jump to Line
Something went wrong with that request. Please try again.