Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: new-records
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 33 lines (23 sloc) 0.616 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
VSN := 0.2
ERL ?= erl
EBIN_DIRS := $(wildcard lib/*/ebin)
APP := ewgi

all: erl ebin/$(APP).app

erl: ebin lib
@./support/compile.erl ebin src/$(APP).app $(EBIN_DIRS)

docs:
@erl -noshell -run edoc_run application '$(APP)' '"."' '[]'

clean:
@echo "removing:"
@rm -fv ebin/*.beam ebin/*.app

ebin/$(APP).app: src/$(APP).app Makefile
@./support/gen_app_file.erl src/$(APP).app $@ $(VSN)

ebin:
@mkdir ebin

lib:
@mkdir lib

dialyzer: erl
@dialyzer -c ebin

test: erl
@$(ERL) -pa $(EBIN_DIRS) -pa ebin -noinput +B \
-eval 'case lists:member(error, ewgi_test:test()) of true -> halt(1); _ -> halt(0) end.'
Something went wrong with that request. Please try again.