summaryrefslogtreecommitdiff
path: root/src/exxhash/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/exxhash/Makefile')
-rw-r--r--src/exxhash/Makefile46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/exxhash/Makefile b/src/exxhash/Makefile
new file mode 100644
index 000000000..754165e5c
--- /dev/null
+++ b/src/exxhash/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/ $<