You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2019/02/22 17:28:20 UTC
[couchdb-khash] 13/25: Update Makefile
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-khash.git
commit e44da124e225d28d8600a2f48c79cab2ac86516b
Author: Alexander Shorin <kx...@apache.org>
AuthorDate: Fri Jul 24 05:31:45 2015 +0300
Update Makefile
- Sort make commands
- Add make help and descriptions for the available commands
- Remove related path to rebar
---
Makefile | 34 ++++++++++++++++++++++++----------
1 file changed, 24 insertions(+), 10 deletions(-)
diff --git a/Makefile b/Makefile
index 73f4484..754165e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,32 +1,46 @@
-REBAR?=./rebar
+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 -rf logs
rm -f test/*.beam
+.PHONY: distclean
+# target: distclean - Removes all unversioned files
distclean: clean
git clean -fxd
-build:
- $(REBAR) compile
-
-
+.PHONY: eunit
+# target: eunit - Runs eunit test suite
eunit:
$(REBAR) eunit
-check: build eunit
+.PHONY: help
+# target: help - Prints this help
+help:
+ @egrep "^# target:" Makefile | sed -e 's/^# target: //g' | sort
%.beam: %.erl
erlc -o test/ $<
-
-
-.PHONY: all clean distclean build eunit check