Skip to content
This repository has been archived by the owner on Nov 20, 2019. It is now read-only.

Commit

Permalink
Add install target to makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
ngerakines committed Jan 19, 2009
1 parent 1ff5ea0 commit adab85b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
LIBDIR=`erl -eval 'io:format("~s~n", [code:lib_dir()])' -s init stop -noshell`
APP_NAME="merle"
VSN="0.1"

Expand All @@ -6,7 +7,6 @@ all: compile
docs:
erl -noshell -run edoc_run application "'$(APP_NAME)'" '"."' '$(VSN)' -s init stop


compile:
@mkdir -p ebin
@erl -make
Expand All @@ -17,3 +17,7 @@ clean:

test: all
prove -v t/*.t

install: all
mkdir -p ${LIBDIR}/${APP_NAME}-${VSN}/ebin
for i in ebin/*.beam; do install $$i $(LIBDIR)/${APP_NAME}-${VSN}/$$i ; done

0 comments on commit adab85b

Please sign in to comment.