This is an automated email from the ASF dual-hosted git repository. jaydoane pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/couchdb-b64url.git
commit 5ea50ac06b3c2997e32e2178a2e01c966df053fc Author: Alexander Shorin <kxe...@apache.org> AuthorDate: Fri Jul 24 05:19:55 2015 +0300 Add Makefile --- Makefile | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..754165e --- /dev/null +++ b/Makefile @@ -0,0 +1,46 @@ +REBAR?=rebar + + +.PHONY: all +# target: all - Makes everything +all: build + + +.PHONY: build +# target: build - Builds the project +build: + $(REBAR) compile + + +.PHONY: check +# target: check - Checks if project builds and passes all the tests +check: build eunit + + +.PHONY: clean +# target: clean - Removes build artifacts +clean: + $(REBAR) clean + rm -f test/*.beam + + +.PHONY: distclean +# target: distclean - Removes all unversioned files +distclean: clean + git clean -fxd + + +.PHONY: eunit +# target: eunit - Runs eunit test suite +eunit: + $(REBAR) eunit + + +.PHONY: help +# target: help - Prints this help +help: + @egrep "^# target:" Makefile | sed -e 's/^# target: //g' | sort + + +%.beam: %.erl + erlc -o test/ $<