Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add install target to makefile

  • Loading branch information...
commit adab85b1caa33aabdfa1bfa0886bb36364e67bd8 1 parent 1ff5ea0
@ngerakines ngerakines authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 Makefile
View
6 Makefile
@@ -1,3 +1,4 @@
+LIBDIR=`erl -eval 'io:format("~s~n", [code:lib_dir()])' -s init stop -noshell`
APP_NAME="merle"
VSN="0.1"
@@ -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
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.