Skip to content
Permalink
Browse files
Standardize Makefile commands
  • Loading branch information
kxepal committed Jul 24, 2015
1 parent ca6de91 commit b891ec196bde2217caa429e0e260827b0d98d9e4
Showing 1 changed file with 35 additions and 8 deletions.
@@ -1,14 +1,41 @@
all: snappy eunit
REBAR?=rebar

snappy:
rebar compile

eunit:
rebar eunit
.PHONY: all
# target: all - Makes everything
all: build


.PHONY: build
# target: build - Builds the project
build:
$(REBAR) compile

check: eunit

.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 -fr priv ebin
$(REBAR) clean


.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

0 comments on commit b891ec1

Please sign in to comment.