This repository has been archived by the owner on Jul 13, 2018. It is now read-only.
Misc suggestions #1
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,4 @@ erl_crash.dump | |
logs | ||
_build | ||
.idea | ||
rebar3* | ||
rebar3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,3 @@ | ||
REBAR3_URL=https://s3.amazonaws.com/rebar3/rebar3 | ||
all: clean compile | ||
|
||
# If there is a rebar in the current directory, use it | ||
ifeq ($(wildcard rebar3),rebar3) | ||
REBAR3 = $(CURDIR)/rebar3 | ||
endif | ||
|
||
# Fallback to rebar on PATH | ||
REBAR3 ?= $(shell test -e `which rebar3` 2>/dev/null && which rebar3 || echo "./rebar3") | ||
|
||
# And finally, prep to download rebar if all else fails | ||
ifeq ($(REBAR3),) | ||
REBAR3 = $(CURDIR)/rebar3 | ||
endif | ||
|
||
all: $(REBAR3) | ||
@$(REBAR3) do clean, compile | ||
|
||
rel: all | ||
@$(REBAR3) release | ||
|
||
$(REBAR3): | ||
curl -Lo rebar3 $(REBAR3_URL) || wget $(REBAR3_URL) | ||
chmod a+x rebar3 | ||
include rebar3.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
.rebar3 | ||
_build/ | ||
ebin/ | ||
.idea/ | ||
log*/ | ||
.rebar/ | ||
.rebar3/ | ||
|
||
_* | ||
.eunit | ||
*.o | ||
*.beam | ||
*.plt | ||
*.swp | ||
*.swo | ||
.erlang.cookie | ||
ebin | ||
log | ||
erl_crash.dump | ||
.rebar | ||
logs | ||
_build | ||
.idea | ||
.eunit | ||
*.o | ||
*.plt | ||
rebar3 | ||
rebar3.crashdump | ||
*.swo | ||
*.swp |
Empty file.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
.PHONY: clean compile dialyzer rel run test | ||
|
||
REBAR3_URL := https://s3.amazonaws.com/rebar3/rebar3 | ||
|
||
# If there is a rebar in the current directory, use it | ||
ifeq ($(wildcard rebar3),rebar3) | ||
REBAR3 := $(CURDIR)/rebar3 | ||
endif | ||
|
||
# Fallback to rebar on PATH | ||
REBAR3 ?= $(shell which rebar3 2>/dev/null || echo "$(CURDIR)/rebar3") | ||
|
||
# And finally, prep to download rebar if all else fails | ||
ifeq ($(REBAR3),) | ||
REBAR3 := $(CURDIR)/rebar3 | ||
endif | ||
|
||
clean: rebar3 | ||
@$(REBAR3) clean | ||
|
||
compile: rebar3 | ||
@$(REBAR3) compile | ||
|
||
dialyzer: compile | ||
@$(REBAR3) dialyzer | ||
|
||
rel: rebar3 | ||
@$(REBAR3) release | ||
|
||
run: rebar3 | ||
@$(REBAR3) shell | ||
|
||
test: compile | ||
@$(REBAR3) ct | ||
|
||
rebar3: $(REBAR3) | ||
|
||
$(REBAR3): | ||
@echo "Retrieving $(REBAR3) from $(REBAR3_URL)" | ||
@curl -sLo $(REBAR3) $(REBAR3_URL) || wget $(REBAR3_URL) | ||
@chmod a+x $(REBAR3) | ||
@echo | ||
@echo '************************************************************************' | ||
@echo 'NOTE - please follow these instructions:' | ||
@echo | ||
$(CURDIR)/rebar3 local install | ||
@echo | ||
@echo '************************************************************************' | ||
@echo | ||
@rm -f $(CURDIR)/rebar3 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The top-level
.gitignore
takes care of the compiled template files, however, the directory must be present so the zero-byte.gitkeep
file is created. There's nothing special about the name, it's just a widely-used convention to preserve an empty directory in a git repo.