Skip to content

Commit

Permalink
Installation procedure added to Makefile.
Browse files Browse the repository at this point in the history
  • Loading branch information
joergen7 committed Apr 11, 2016
1 parent 56f9055 commit 5b29e1d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
11 changes: 9 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
all: compile
SRC=bash effi effi_interact effi_script perl python r lib_refactor
INC=effi
PWD=$(shell pwd)

compile:
all: _build/default/bin/effi

install: _build/default/bin/effi
ln -sf $(PWD)/_build/default/bin/effi /usr/local/bin/effi

_build/default/bin/effi: $(SRC:%=src/%.erl) $(INC:%=include/%.hrl)
rebar3 escriptize

dev:
Expand Down
4 changes: 2 additions & 2 deletions src/effi.erl
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,8 @@ runscript( Dir, Refactor, [RequestFile, SumFile] ) ->
RMap = maps:get( ret, Sum ),
{lam, _Line, _LamName, Sign, _Body} = Lam,
{sign, Lo, _Li} = Sign,
{RefactorLst, [], RMap1} = refactor:get_refactoring( Lo, RMap, Dir, [Dir], R ),
ok = refactor:apply_refactoring( RefactorLst ),
{RefactorLst, [], RMap1} = lib_refactor:get_refactoring( Lo, RMap, Dir, [Dir], R ),
ok = lib_refactor:apply_refactoring( RefactorLst ),
maps:put( ret, RMap1, Sum )
end

Expand Down
2 changes: 1 addition & 1 deletion src/refactor.erl → src/lib_refactor.erl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
%% @author Jörgen Brandt <[email protected]>


-module( refactor ).
-module( lib_refactor ).
-author( "Jorgen Brandt <[email protected]>" ).
-vsn( "0.1.0-snapshot" ).

Expand Down

0 comments on commit 5b29e1d

Please sign in to comment.